|
Prev: Mail forwarding and SPF issue
Next: Load balancing SMTP
From: Andreas Muerdter on 3 Jul 2008 17:05 Hi @all, I use two sendmail daemons on one server. One deamon listen on the the primary interface and have the same domain name as the hostname of the server. When I send an email from the second sendmail via the mx record the first sendmail deamon. sendmail say "mx points back " and "local configruation error". The problem is that sendmail make at startup a gethostname and use this name as canonical hostname. How can I disable gethostname at statup or remove the canonical hostname. THX Andreas
From: Per Hedeland on 4 Jul 2008 07:00 In article <g4jeur$l2a$1(a)solani.org> Andreas Muerdter <mainpostfach(a)gmx.net> writes: > >I use two sendmail daemons on one server. >One deamon listen on the the primary interface >and have the same domain name as the hostname of the server. >When I send an email from the second sendmail via the mx >record the first sendmail deamon. sendmail say >"mx points back " and "local configruation error". >The problem is that sendmail make at startup a gethostname >and use this name as canonical hostname. How can I disable >gethostname at statup or remove the canonical hostname. You can set this name with confDOMAIN_NAME in the .mc file. You can also modify just the greeting message to use something other than $j with confSMTP_LOGIN_MSG. And finally, you can disable the check (only good in some special cases, like a daemon that will *always* talk to another on the same host) by adding the 'k' mailer flag to the SMTP mailer(s) (e.g. via MODIFY_MAILER_FLAGS()). --Per Hedeland per(a)hedeland.org
From: Andreas Muerdter on 6 Jul 2008 17:56 Per Hedeland wrote: > You can set this name with confDOMAIN_NAME in the .mc file. You can also > modify just the greeting message to use something other than $j with > confSMTP_LOGIN_MSG. And finally, you can disable the check (only good in > some special cases, like a daemon that will *always* talk to another on > the same host) by adding the 'k' mailer flag to the SMTP mailer(s) > (e.g. via MODIFY_MAILER_FLAGS()). > > --Per Hedeland > per(a)hedeland.org I tried the mailer flags, without success. confDOMAIN_NAME and confSMTP_LOGIN_MSG are set correct. It is possible to set the names, but the original hostnam, set by gethostname() is always present. Is it possible to delete an entry in sendmail at runtime? The original hostname in sendmail causes the problem with mx points back - Andreas
From: Per Hedeland on 6 Jul 2008 20:12 In article <g4rf2e$aq3$1(a)solani.org> Andreas Muerdter <mainpostfach(a)gmx.net> writes: >Per Hedeland wrote: > >> You can set this name with confDOMAIN_NAME in the .mc file. You can also >> modify just the greeting message to use something other than $j with >> confSMTP_LOGIN_MSG. And finally, you can disable the check (only good in >> some special cases, like a daemon that will *always* talk to another on >> the same host) by adding the 'k' mailer flag to the SMTP mailer(s) >> (e.g. via MODIFY_MAILER_FLAGS()). >I tried the mailer flags, without success. >confDOMAIN_NAME and confSMTP_LOGIN_MSG are set correct. Sorry, I misdiagnosed your problem (my suggestions were appropriate for the case where sendmail reports "mail loops back to me (MX problem?)" - *completely* different:-). >It is possible to set the names, but the original hostnam, set by >gethostname() is always present. Is it possible to delete an entry in >sendmail at runtime? >The original hostname in sendmail causes the problem with mx points back It is not possible to remove entries in a class (i.e. class {w} in this case), and I don't know of a way to make sendmail refrain from putting the actual hostname into class {w} in the first place. Two possible solutions: 1) Use mailertable for the "second" sendmail - it overrides MX entries and you won't get the "points back to" problem (which is the result of ending up with an empty MX list when all local and lower-prio MXen have been eliminated). 2) Don't use the actual hostname as MX destination, but another name that has an A record with the same IP address. You need to add it to class {w} on the "first" sendmail. --Per Hedeland per(a)hedeland.org
From: Andrzej Adam Filip on 6 Jul 2008 20:34
Andreas Muerdter <mainpostfach(a)gmx.net> wrote: > Hi @all, > > I use two sendmail daemons on one server. > One deamon listen on the the primary interface > and have the same domain name as the hostname of the server. > When I send an email from the second sendmail via the mx > record the first sendmail deamon. sendmail say > "mx points back " and "local configruation error". > The problem is that sendmail make at startup a gethostname > and use this name as canonical hostname. How can I disable > gethostname at statup or remove the canonical hostname. You can set $j (this host email name) in sendmail.cf http://www.sendmail.org/m4/whoami.html AFAIR By default sendmail refuses to talk via SMTP to host that present name in $=w (list of local email domains) as its name in SMTP greeting. Take a look at the URL below to know one way to fix it: http://www.sendmail.org/m4/tweaking_config.html#confDONT_PROBE_INTERFACES -- [pl>en Andrew] Andrzej Adam Filip : anfi(a)priv.onet.pl : anfi(a)xl.wp.pl Linux! Guerrilla UNIX Development Venimus, Vidimus, Dolavimus. -- Mark A. Horton KA4YBR, mah(a)ka4ybr.com |