Forum Discussion
Stephan_87795
Nimbostratus
Sep 23, 2008sender address in eMails sent by postfix
Hello all,
I am trying to use postfix-settings (/etc/postfix/) for sending mails from the bigIP directly to my account.
By default the sender address is like "root@mydomain.tld",...
JRahm
Admin
Sep 25, 2008OK, with your lead, I was able to get this to work with this minimal configuration:
echo "" >> /etc/postfix/main.cf
echo " Customized for SMTP Sender Identification" >> /etc/postfix/main.cf
echo "" >> /etc/postfix/main.cf
echo "relayhost = 192.168.1.2" >> /etc/postfix/main.cf
echo "sender_canonical_maps = hash:/etc/postfix/canonical" >> /etc/postfix/main.cf
echo "root LTM1@domain.com" > /etc/postfix/canonical
echo "root@LTM1 LTM1@domain.com >> /etc/postfix/canonical
echo "root@localhost LTM1@domain.com >> /etc/postfix/canonical
echo "root@domain LTM1@domain.com >> /etc/postfix/canonical
echo "root@domain.com LTM1@domain.com >> /etc/postfix/canonical
postmap /etc/postfix/canonical
bigstart restart postfix
echo TEST | mail -s TEST me@domain.com
Note that the display name (in Outlook anyway) still shows root, but the mail source address is LTM1@domain.com
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects