Forum Discussion
Stephan_87795
Sep 23, 2008Nimbostratus
sender 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", so it always takes "root" as the user account. Unfortunately, I can't use "root" within our SMTP-environment, therefore it would be quite valuable for me being able to change the sender's user account to something like "LTM1@mydomain.tld".
Does anyone know where to change this exactly? I was trying to do this in /etc/postfix/aliases, but did not get to a satisfying result so far...:-(
Thanks for any good ideas.
Cheers,
Stephan
- JRahmAdminEdit /etc/postfix/main.cf:
- Stephan_87795NimbostratusHi,
- JRahmAdminSorry, jumped the gun on that... :-)
- Stephan_87795NimbostratusHi,
- JRahmAdminExcellent work, thanks for posting back!
- JRahmAdminHmm, still no change for me, I still get the root. Can you post your config, and your LTM version? Thanks
- Stephan_87795NimbostratusOK - I tried several things before so maybe they work in co-incidence:
- Stephan_87795Nimbostratussorry - for canonical i meant:
- JRahmAdminOK, 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
- Per_AnderssonNimbostratusHello.
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