smtp_sasl_security_options, which in the following configuration will be set to empty, to ensure that no Gmail-incompatible security options are used. smtp_sasl_auth_enable, which enables (or disables) SASL authentication. smtp_use_tls, which enables (or disables) transport layer security. The host name will be enclosed in brackets to specify that no MX lookup is required. The parameters are: relayhost, which specifies the mail relay host and port number. There are six parameters which must be set in the Postfix configuration file main.cf. Your Gmail password is stored as plaintext, so make the file accessible only by root:Ĭhmod 600 /etc/postfix/sasl_passwd Step3: Configure Postfix Postfix configuration files reside in the directory /etc/postfix. The file can be named whatever you like, but the recommended filename is sasl_passwd. The password file will reside in the Postfix configuration directory. If you are using a custom Gmail Apps domain name, you may replace with your Google Apps domain. In the authentication information below, replace username with your Gmail username and password with your Gmail password. You may be prompted to set the “Root and postmaster mail recipient.” Enter root, or another user who should receive mail subsystem notifications.įor any other prompts, you can choose the default values.ĬentOS: yum update & yum install postfix mailx cyrus-sasl cyrus-sasl-plain Step2: Configure Gmail AuthenticationĬreate or modify a password file which will be used by Postfix to establish authentication with Gmail. Regardless of what you enter here, your return address will appear to recipients as your Gmail address. A fully-qualified domain name is preferred, but using your machine’s simple hostname is OK. When prompted for a “Mail name,” choose a hostname to be used in mail headers as the origin of your emails. When prompted for “General type of mail configuration,” choose Internet Site. Step1: Install Required Softwareĭebian, Ubuntu: apt-get update & apt-get install postfix mailutils We will go through the installation step of postfix and configuration based on gmail smtp.Īfter the tutorial, you will able to send mail over gmail smtp server.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |