On Thu, Sep 8, 2011 at 6:09 PM, Jean-Luc CHANDEZON <knut...@gmail.com> wrote: > > > 2011/9/8 Fernando Maior <fernando.souto.ma...@gmail.com> >> >> On Thu, Sep 8, 2011 at 10:22 AM, Wietse Venema <wie...@porcupine.org> >> wrote: >> > Jean-Luc CHANDEZON: >> >> Hello, >> >> I believe my request is very simple, but I don't find how I can do >> >> that. >> >> When you receive a NDR from postfix server, the mail is sent by >> >> MAILER-DAEMON@hostname.local. >> >> I would to change the sender. I've seen you can modify master.cf, by >> >> adding >> >> "null_sender=" values in a pipe, but it does not work. >> > >> > The null_sender option works as documented. It sets the ENVELOPE >> > SENDER ADDRESS not the FROM header. >> > >> > Setting the FROM header of (non-)delivery notifications is unsafe, >> > as it may cause mail error messages to go into a loop. >> > >> > Wietse >> > >> >> Hi Jean-Luc, >> >> Let me try to understand, you want to change >> "MAILER-DAEMON@hostname.local" >> for something else? In that case, what do you have for parameters >> "mydomain" and >> "myhostname"? >> >> Also, did you get a look at "http://www.postfix.org/SOHO_README.html"? >> Perhaps >> you may find it interesting the parameter "smtp_generic_maps". >> >> Best regards, >> --- >> Fernando Maciel Souto Maior >> LPIC/1(31908), LinuxCounter(391325) > > Hi Fernando, > > Yes, for end user, the MAILER-DAEMON appears like the sender, which is empty > ("<>"). > Yes, you're right, I want to change this value. > The "mydomain" and "my hostname" values are no used on my postfix > configuration file "main.cf". > I'll try to investigate "smtp_generic_maps". > Best Regards, > Jean-Luc >
Jean-Luc, As per documentation, "mydomain" and "myhostname" get their values from your host name (from operating system) if they are not set in main.cf, so that should be the reason why you have "@hostname.local". Try to set "mydomain" to something else and see what happens... Best regards, --- Fernando Maciel Souto Maior LPIC/1(31908), LinuxCounter(391325)