article1 Feedback-ID is an additional header required by Gmail Feedback Loop to see aggregated data in Google Postmaster tools . Gmail requires it to include in DKIM-Signature. The following guide explains how it can be configured in OpenDKIM : Edit opendkim.conf vim /etc/opendkim.conf Add the following line : SignHeaders Feedback-ID Reload openkdim : systemctl reload opendkim.service Reload postfix : systemctl reload postfix.service Send a test email with swaks to gmail : swaks --from postmaster@postfix.io --to xxxx@gmail.com --h-Feedback-ID 123:asd:123 --server 127.0.0.1:25 My test mail results : Authentication-Results: mx.google.com;dkim=pass header.i=@postfix.io header.s=key1 header.b=oY1NVInb;spf=pass (google.com: domain of postmaster@postfix.io designates 45.55.57.182 as permitted sender) smtp.mailfrom=postmaster@postfix.io;dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=postfix.io Date: Sun, 12 Nov 2017 11:04:42 +0000 DKIM-Signature: v=1
article1 Most of the time Postfix is configured with self signed certificate which works well because mostly certificate validation is not required by MTAs. Though it can be useful for applications or mailbox users connecting to central MTA to delivery of emails. You can either buy SSL certificate from your provider or use letscrypt.org free certificates(needs to be renewed every 3 months). In this guide, i will use letencrypt certificate for my mx host console.postfix.io . I use letsencrypt utility to manage certificate for my domains, below command will generate standalone certificate for my host. letsencrypt certonly --standalone -d console.postfix.io The output… Congratulations! Your certificate and chain have been saved at:/etc/letsencrypt/live/console.postfix.io/fullchain.pem Your key file has been saved at:/etc/letsencrypt/live/console.postfix.io/privkey.pem… Edit main.cf vim /etc/postfix/main.cf Replace the following lines : smtpd_tls_ce
article1 By default Postfix listens on Port 25. You can change it to any port. In our case, we would want to change it to 2525. vi /etc/postfix/master.cf Replace smtp inet n - n - - smtpd with 2525 inet n - n - - smtpd Restart Postfix service. systemctl restart postfix.service
Comments
Post a Comment