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
19 Replies
- Hamish
Cirrocumulus
Well... You could use a regex rule on the body to kickoff a different canonical mapping.
H - luciano_55922
Nimbostratus
Hello
People.
which step by step for me to configure the BigIP to send email on failure of the pool, ask the site I'm not getting set. - hoolio
Cirrostratus
Hi Luciano,
Here's a good article to start with:
sol3667: Configuring alerts to send email notifications
http://support.f5.com/kb/en-us/solutions/public/3000/600/sol3667.html
Aaron - kridsana
Cirrocumulus
Hi Hoolio
From sol3667 .. If i changed fromaddress="root" into fromaddress="gtm01"
when email sent >> Does sender will change into From: gtm01@hostname.com ?
Thank you - kridsana
Cirrocumulus
Hi Hoolio
From sol3667 .. If i changed fromaddress="root" into fromaddress="gtm01"
when email sent >> Does sender will change into From: gtm01@hostname.com ?
Thank you - hoolio
Cirrostratus
Yes, I believe that should work. If not, can you just put the full from address you'd like used?
Aaron - 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
