Configure ElasticEmail with Postfix

To configure ElasticEmail with postfix, first install sasl support On Debian/Ubuntu apt-get install libsasl2-modules On RHEL/CentOS yum install cyrus-sasl-plain Edit postfix config vi /etc/postfix/main.cf On Ubuntu/Debian, you need to comment the line starting with “relayhost”. Add following smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_security_options = noanonymous smtp_sasl_tls_security_options = noanonymous smtp_tls_security_level = encrypt header_size_limit = 4096000 … Read more

Configure Postfix to sent emails using MailGun

First install requirements apt-get update && apt-get install postfix libsasl2-modules -y Run sed -i “s/default_transport = error/# default_transport = error/g” /etc/postfix/main.cf sed -i “s/relay_transport = error/# relay_transport = error/g” /etc/postfix/main.cf sed -i “s/relayhost =/# relayhost =/g” /etc/postfix/main.cf Edit /etc/postfix/main.cf vi /etc/postfix/main.cf Add relayhost = [smtp.mailgun.org]:2525 smtp_tls_security_level = encrypt smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_security_options … Read more

SASL authentication no mechanism available

When sending email from postfix mail sever that use mailgun for relaying mails, i get error Jan 4 03:16:06 serverok-vm postfix/qmgr[22652]: 795731A8D: from=, size=820, nrcpt=1 (queue active) Jan 4 03:16:06 serverok-vm postfix/smtp[24050]: warning: SASL authentication failure: No worthy mechs found Jan 4 03:16:06 serverok-vm postfix/smtp[24050]: 795731A8D: SASL authentication failed; cannot authenticate to server smtp.mailgun.org[34.237.7.101]: no … Read more

postfix

List emails in queue Delete ALL queued emails Delete only deferred emails Delete specific email by queue ID postfix no local interface found SASL authentication no mechanism available Postfix Delete Mails from a user install postfix from source code Postfix Mail Server Postfix email forward Setting up Mail Forwarding in Postfix Postfix Configuration postconf Postfix … Read more

postfix no local interface found

When starting postfix it failed with following error [root@cloud1 etc]# service postfix start Redirecting to /bin/systemctl start postfix.service Job for postfix.service failed because the control process exited with error code. See “systemctl status postfix.service” and “journalctl -xe” for details. [root@cloud1 etc]# service postfix status Redirecting to /bin/systemctl status postfix.service ● postfix.service – Postfix Mail Transport … Read more

install postfix from source code

Requirements yum -y install db4 db4-devel Create user groupadd postfix -g 1000 useradd postfix -u 1000 -g 1000 groupadd postdrop Download and Install Go to http://www.postfix.org/download.html and download latest version of postfix. cd /usr/local/src wget http://mirrors.rootservices.net/postfix/official/postfix-2.6.2.tar.gz tar -zxvf postfix-2.6.2.tar.gz cd postfix-2.6.2 COMPILING make tidy make -f Makefile.init makefiles make make install COMPILING WITH MYSQL SUPPORT … Read more