Re: [Exim] primary_hostname, qualify_domain and mailer-daemo…

Góra strony
Delete this message
Reply to this message
Autor: Peter Radcliffe
Data:  
Dla: exim-users
Temat: Re: [Exim] primary_hostname, qualify_domain and mailer-daemon
Miquel van Smoorenburg <list-exim-users@???> probably said:
> So it struck me that the string used to build the hostname portion
> of mailbounces (mailer-daemon@%s) should not be qualify_domain, but
> primary_hostname instead. Does that make sense, or is it a bad idea?
> Perhaps a new config option 'errors_from_domain' would be in order ?


Set the qualify_domain to be the FQDN and rewrite it to your main
domain if the local part is not mailer-daemon (or other system local
parts).

I do this so general mail appears to come from domains but it makes it
easy to work out which machine some system mail came from.

# is this system mail ?
^(?i)(root|postmaster|exim|news|usenet|uucp|daemon|mailer-daemon)@ * Ff
# otherwise, rewrite the froms.
*@@ $1@${qualify_recipient} Ffr

P.

-- 
pir                  pir@???                    pir@???