Forum Discussion
sender address in eMails sent by postfix
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
- Hamish
Cirrocumulus
Well... You could use a regex rule on the body to kickoff a different canonical mapping. - luciano_55922
Nimbostratus
Hello - hoolio
Cirrostratus
Hi Luciano, - kridsana
Cirrocumulus
Hi Hoolio - kridsana
Cirrocumulus
Hi Hoolio - hoolio
Cirrostratus
Yes, I believe that should work. If not, can you just put the full from address you'd like used?
- Stefan_Klotz
Cumulonimbus
I just want to say thank you (especially Stephan and Jason) for this very old topic. It helped me a lot to get email alerting on custom user alerts working again. Settings got lost during software update and were not documented :(
Ciao Stefan :)
- lilli_144452
Nimbostratus
Hi,
I'm with the same problem, see configurations applied below:
[ltm01:Active] ~ newaliases [ltm01:Active] ~ echo "smtp_generic_maps = hash:/etc/postfix/generic" >> /etc/postfix/main.cf [ltm01:Active] ~ echo "root@localhost myname@mydomain.com" > /etc/postfix/generic [ltm01:Active] ~ echo "root@myname@mydomain.com myname@mydomain.com" > /etc/postfix/generic [ltm01:Active] ~ echo "sender_canonical_maps = hash:/etc/postfix/generic" >> /etc/postfix/main.cf [ltm01:Active] ~ postmap /etc/postfix/generic [ltm01:Active] ~ bigstart restart postfix
Am i missing something?
Regards
- lilli_144452
Nimbostratus
[ltm01:Active] ~ newaliases [ltm01:Active] ~ echo "smtp_generic_maps = hash:/etc/postfix/generic" >> /etc/postfix/main.cf [ltm01:Active] ~ echo "root@localhost myname@mydomain.com" > /etc/postfix/generic [ltm01:Active] ~ echo "root@myname@mydomain.com myname@mydomain.com" > /etc/postfix/generic [ltm01:Active] ~ echo "sender_canonical_maps = hash:/etc/postfix/generic" >> /etc/postfix/main.cf [ltm01:Active] ~ postmap /etc/postfix/generic [ltm01:Active] ~ bigstart restart postfix
Recent Discussions
Related Content
* 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