Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 21st February 2013, 14:22
fantalimon fantalimon is offline
Junior Member
 
Join Date: Feb 2013
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Question how to change display name of From address in postfix

Haven't found it yet and am hoping someone here knows. I am trying to change the display name of the From address field. I have managed to change via /etc/postfix/generic
apache@domain.com to no-reply@domain.com
but the email from field appears as this:-
Apache (no-reply@domain.com)

I trying to change 'Apache' to something else.

Does anyone know how to?

Thanks in advance
Reply With Quote
Sponsored Links
  #2  
Old 25th February 2013, 09:39
fantalimon fantalimon is offline
Junior Member
 
Join Date: Feb 2013
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default the answer

I have found the answer to my query finally!!
To change the display name go to php.ini and change,

sendmail_path = /usr/sbin/sendmail.postfix -t -i -F "no-reply"
Reply With Quote
  #3  
Old 10th October 2013, 12:16
JayC JayC is offline
Junior Member
 
Join Date: Oct 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by fantalimon View Post
sendmail_path = /usr/sbin/sendmail.postfix -t -i -F "no-reply"
Well that's great if you're targeting a specific application.
I used this technique in fail2ban actions to produce the same result but this is extremely cumbersome if you have multiple servers/vservers/services which send mail. I wish someone could point me out in the right direction because this is something that's been haunting me for a while.

My issue is that I would like to change permanently the display name of the from for all mails sent by postfix. I use postfix as a relay to google apps and have one account there with multiple domain aliases. I only really use one set of credentials for authentication stored in sasl_passwd for all my domains and use filters to manage forwarding to proper accounts and/or folders.

Have tried generic mapping, played around with /etc/aliases but nothing did it and I'm still receiving emails from "root" <noc@mydomain.com> while what I really want is "mydomain.me" <noc@mydomain.com> no matter the account it was sent from.

If anyone has any idea on how to solve this issue please let us know.

Thanks in advance,
JC
Reply With Quote
  #4  
Old 10th October 2013, 16:16
TiTex TiTex is offline
Senior Member
 
Join Date: Aug 2011
Location: Cluj-Napoca,Romania
Posts: 125
Thanks: 0
Thanked 18 Times in 17 Posts
Send a message via Skype™ to TiTex
Default

why not just use the From: header ?

-F "Whatever name <whatever@domain.com>"
Reply With Quote
  #5  
Old 10th October 2013, 17:11
JayC JayC is offline
Junior Member
 
Join Date: Oct 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Hi TiTex,

Thanks for the input. As I said, I use it for the moment as a workaround but chasing out the sendmail cmds sent by apps is a pain (my last encounter was with ddclient where you have to modify the client itself, meaning that on next update mods are gone).

I am looking for some type of global solution that works where I can define that if the mail was sent by a particular service/app/account it gets a corresponding header. I thought the /etc/aliases file would allow me to do this but apparently not (or I didn't read the FM enough... lol)

Best,
JS
Reply With Quote
Reply

Bookmarks

Tags
apache, display name, from address, postfix

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail-Problema jz_ HOWTO-Related Questions 9 14th September 2011 13:31
ERROR: Connection dropped by IMAP server. [Centos 5.4, courier imap,squirrel, etc] darevil HOWTO-Related Questions 7 9th June 2010 14:49
Undelivered Mail Returned to Sender Error202 General 5 7th May 2009 11:14
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 15:47
Verify email setup meekish Installation/Configuration 28 27th October 2006 15:36


All times are GMT +2. The time now is 11:01.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.