Sendmail MX points back to ....

Tutto quello che ha a che fare con GNU/Linux, soprattutto in ambito sistemistico.

Moderatore: Federico.Lagni

Rispondi
mik
n00b
Messaggi: 22
Iscritto il: mer 14 apr , 2004 12:21 pm
Località: Cividat

Ciao ragazzi,

la rogna di oggi suono + o - così
il nuovo server di posta chiamato pippo restituisce un problema di MX.
il mio scopo è quello di avere un server di posta che facendo controllo antivirus ed anti spam ed aggiunga la stringa ***SPAM*** prima del
campo subject nei dovuti casi.

seguendo i dettami dal sito amavis (che invoca spamassassin)
ho fatto una bellissima installazione con due istanze di sendmail
una in ricezione (porta 25) che gira la posta ad amavis (porta 10024) che dopo aver fatto il suo la gira alla seconda istanza di sendmail (porta 10025) per il delivery finale o il forward a chi del caso

funzia tutto
fino al momento che aggiorno il dns e faccio diventare pippo
il record MX del dominio casa.mydomain.it
ho aggiunto casa.mydomain.it in /etc/mail/local-host-names
ma senza successo
lo stesso dominio è stato messo in /etc/mail/relay-domains
nel file mc di sendmail c'è la bella stringa
define(`confCW_FILE', `-o /etc/mail/local-host-names %[^\#]')dnl

per riassumere e completare anche i tentativi di debug incollo qui sotto
anche il post fatto sulla mailing list di amavis

in attesa di vostri eventuali suggerimenti e della soluzione finale
vi ringrazio e vi saluto tutti

Michele


hi all

the problem is simply this
554 5.0.0 MX list for pippo.casa.mydomain.it. points back to
pippo.casa.mydomain.it
554 5.3.5 Local configuration error

the server is called pippo and the subdomain is casa.mydomain.it
pippo should be also contacted as mail.casa.mydomain.it

sendmail ver is 8.13.1-5
rx sendmail instance listening on port 25
tx sendmail instance listening on 10025
amavis listening on 10024

tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:10024 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:10025 0.0.0.0:* LISTEN

i'm trying to use for the first time a dual sendmail config to work with amavis & spamassassin
both of the .mc files used to create the sendmail-rx.cf and sendmail-rx.cf contain the string
define('confCW_FILE', '-o /etc/mail/local-host-names %[^\#]')dnl
/etc/mail/local-host-names
contains the line
casa.mydomain.it

everything works well till i put in the dns zone the pippo.casa.mydomain.it as the MX record
pippo.casa.mydomain.it as also a CNAME record and it is reachable also as mail.casa.mydomain.it


to diagnose better i've issued the following command

echo '$=w' | sendmail -bt -d0.4

on the actual mail server (pluto) and also on pippo
pluto is running only one instance of sendmail and works well

WORKING SINGLE SENDMAIL CONFIGURATION---------------------------------------------------------------

Version 8.12.10
Compiled with: DNSMAP EGD LDAPMAP LOG MAP_REGEX MATCHGECOS MILTER
MIME7TO8 MIME8TO7 NAMED_BIND NETINET NETINET6 NETUNIX NEWDB NIS
NISPLUS PIPELINING SASLv2 SCANF STARTTLS TCPWRAPPERS USERDB
USE_LDAP_INIT
Canonical name: pluto.casa.mydomain.it
a.k.a.: pluto
a.k.a.: pluto.casa
UUCP nodename: pluto
a.k.a.: pluto
a.k.a.: [192.168.0.13]
a.k.a.: [127.0.0.1]
a.k.a.: [10.24.2.13]
a.k.a.: [10.24.3.13]
a.k.a.: [10.24.0.13]

============ SYSTEM IDENTITY (after readcf) ============
(short domain name) $w = pluto
(canonical domain name) $j = pluto.casa.mydomain.it
(subdomain name) $m = casa.mydomain.it
(node name) $k = pluto
========================================================

ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
> [192.168.0.13]
[10.24.0.13]
[10.24.2.13]
[10.24.3.13]
pluto.casa.mydomain.it
pluto
localhost
[127.0.0.1]
casa.mydomain.it
pluto.casaVersion 8.12.10
Compiled with: DNSMAP EGD LDAPMAP LOG MAP_REGEX MATCHGECOS MILTER
MIME7TO8 MIME8TO7 NAMED_BIND NETINET NETINET6 NETUNIX NEWDB NIS
NISPLUS PIPELINING SASLv2 SCANF STARTTLS TCPWRAPPERS USERDB
USE_LDAP_INIT
Canonical name: pluto.casa.mydomain.it
a.k.a.: pluto
a.k.a.: pluto.casa
UUCP nodename: pluto
a.k.a.: pluto
a.k.a.: [192.168.0.13]
a.k.a.: [127.0.0.1]
a.k.a.: [10.24.2.13]
a.k.a.: [10.24.3.13]
a.k.a.: [10.24.0.13]

============ SYSTEM IDENTITY (after readcf) ============
(short domain name) $w = pluto
(canonical domain name) $j = pluto.casa.mydomain.it
(subdomain name) $m = casa.mydomain.it
(node name) $k = pluto
========================================================

ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
> [192.168.0.13]
[10.24.0.13]
[10.24.2.13]
[10.24.3.13]
pluto.casa.mydomain.it
pluto
localhost
[127.0.0.1]
casa.mydomain.it
pluto.casa

the same comand issued on pippo

NOT WORKING DUAL-SENDMAIL---------------------------------------------------------------------------------
(same output for both the sendmail-rx.cf and sendmail-tx.cf)

Version 8.13.1
Compiled with: DNSMAP EGD LDAPMAP LOG MAP_REGEX MATCHGECOS MILTER
MIME7TO8 MIME8TO7 NAMED_BIND NETINET NETINET6 NETUNIX NEWDB NIS
NISPLUS PIPELINING SASLv2 SCANF STARTTLS TCPWRAPPERS USERDB
USE_LDAP_INIT
Canonical name: pippo.casa.mydomain.it
UUCP nodename: pippo
a.k.a.: pippo
a.k.a.: [10.24.2.254]
a.k.a.: [127.0.0.1]

============ SYSTEM IDENTITY (after readcf) ============
(short domain name) $w = pippo
(canonical domain name) $j = pippo.casa.mydomain.it
(subdomain name) $m = casa.mydomain.it
(node name) $k = pippo
========================================================

ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
> pippo
localhost
[10.24.2.254]
[127.0.0.1]
pippo.casa.mydomain.it

as you can see there's the in last lines of the dual-sendmail pc i'm missing
casa.mydomain.it
pippo.casa

My doubt starts after reading http://www.sendmail.org/faq/section4.html#4.5
as the last line i find
Note: You can also get this error message (MX loops ...) when two sendmail systems talk to each other,
and both have the same value of $j .
The best solution is "don't do that."

any insight ?

thank you !!!!!
Michele
Avatar utente
banshee
Cisco enlightened user
Messaggi: 136
Iscritto il: dom 26 set , 2004 3:58 pm
Località: udine

Tutti guardano e nessuno risponde? In effetti il tuo problema sembra essere cazzuto. Purtroppo ammetto la mia totale ignoranza in materia di configurazione di sendmail. Lo odio e non posso soffrirlo...
Sulla mailing list ti hanno risposto? Hai seguito particolari howto? Se magari puoi darmi qualche link di documentazione provo a leggere un po' e vedere se ti posso essere in qualche modo d'aiuto
there is only a place like 127.0.0.1: www.ilbanshee.net
mik
n00b
Messaggi: 22
Iscritto il: mer 14 apr , 2004 12:21 pm
Località: Cividat

Ciao

scusate se non ho fatto ancora il post della soluzione che è stata
semplicemente di sostituire la stringa

define(`confCW_FILE', `-o /etc/mail/local-host-names
%[^\#]')dnl

con

FEATURE(`use_cw_file')dnl

la prima riga nel file .mc funziona con la mia versione
sendmail-8.12.10-7
ma non con la
sendmail-8.13.1-5

nessun errore ovviamente in fase di creazione con m4 del file sendmal.cf
ed in /var/log/messages

che dire?
grazie del tempo dedicato

ciao a tutti

Mik
Avatar utente
TheIrish
Site Admin
Messaggi: 1840
Iscritto il: dom 14 mar , 2004 11:26 pm
Località: Udine
Contatta:

ottimo!
grazie per averci informato. tornerà sicuramente utile
Avatar utente
banshee
Cisco enlightened user
Messaggi: 136
Iscritto il: dom 26 set , 2004 3:58 pm
Località: udine

Io ODIO sendmail, cazzarola che bastardata
there is only a place like 127.0.0.1: www.ilbanshee.net
Rispondi