[CentOS] Sendmail problem - baffled

Alexander Dalloz ad+lists at uni-x.org
Tue May 15 22:03:23 UTC 2012


Am 15.05.2012 23:39, schrieb Jussi Hirvi:
> On 15.5.2012 23.54, Alexander Dalloz wrote:
>> So there must be "sm-mta-rx" be defined somewhere.
> 
> Just in case, here is my conf for the rx instance. To repeat, this 
> sendmail instance sends everything to amavisd at port 10024.
> - Jussi

Ah, here it is. Sorry, did not see this mail.

> divert(-1)dnl
> include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
> VERSIONID(`MTA-RX jh-2012-05')dnl
> OSTYPE(`linux')dnl
> define(`confSMTP_LOGIN_MSG', `$j Sendmail; $b')dnl
> define(`confLOG_LEVEL', `19')dnl # default: 9
> INPUT_MAIL_FILTER(`greylist',`S=local:/var/milter-greylist/milter-greylist.sock')
> define(`confDEF_USER_ID', ``8:12'')dnl
> define(`confTO_INITIAL', `6m')dnl
> define(`confTO_CONNECT', `1m')dnl
> define(`confTO_HELO', `5m')dnl
> define(`confTO_HOSTSTATUS', `2m')dnl
> define(`confTO_DATAINIT', `6m')dnl
> define(`confTO_DATABLOCK', `60m')dnl
> define(`confTRY_NULL_MX_LIST', `True')dnl
> define(`confDONT_PROBE_INTERFACES', `True')dnl
> define(`PROCMAIL_MAILER_PATH', `/usr/bin/procmail')dnl
> define(`UUCP_MAILER_MAX', `2000000')dnl
> define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl
> define(`confPRIVACY_FLAGS', 
> `authwarnings,novrfy,noexpn,noverb,needmailhelo,needexpnhelo,needvrfyhelo,restrictqrun,restrictmailq')dnl
> define(`confAUTH_OPTIONS', `A')dnl
> define(`confCRL', `/etc/mail/certs/revoke.crl')dnl
> define(`confTO_QUEUEWARN', `5m')dnl
> define(`confTO_QUEUERETURN', `2d')dnl
> define(`confDELAY_LA', `12')dnl  added by jh, see batbook 1002
> define(`confREFUSE_LA', `20')dnl upped by jh from 18
> define(`confTO_IDENT', `0')dnl   0 = ident disabled
> define(`confTO_RESOLVER_RETRANS_FIRST', `2')dnl
> define(`confTO_RESOLVER_RETRANS_NORMAL', `10')dnl
> define(`confTO_RESOLVER_RETRY_FIRST', `2')dnl
> define(`confTO_RESOLVER_RETRY_NORMAL', `5')dnl
> FEATURE(`no_default_msa', `dnl')dnl
> FEATURE(`smrsh', `/usr/sbin/smrsh')dnl
> FEATURE(`mailertable', `hash /etc/mail/mailertable.db')dnl
> FEATURE(`virtusertable', `hash /etc/mail/virtusertable.db')dnl
> FEATURE(redirect)dnl
> FEATURE(always_add_domain)dnl
> FEATURE(nocanonify)dnl
> FEATURE(use_cw_file)dnl
> FEATURE(use_ct_file)dnl
> define(`confMAX_DAEMON_CHILDREN', `130')dnl
> define(`confMIN_FREE_BLOCKS', `10000')dnl   added by jh (see dual-readme)
> define(`confCONNECTION_RATE_THROTTLE', `3')dnl
> FEATURE(local_procmail, `', `procmail -t -Y -a $h -d $u')dnl
> FEATURE(`access_db', `hash -T<TMPF> -o /etc/mail/access.db')dnl
> FEATURE(`blacklist_recipients')dnl
> FEATURE(`greet_pause',`1000')dnl
> FEATURE(`compat_check')dnl
> EXPOSED_USER(`root')dnl
> FEATURE(`dnsbl', `blackholes.mail-abuse.org', `"550 Email rejected due 
> to sending server misconfiguration - see 
> http://blackholes.mail-abuse.org/faq/#why_rejected"')dnl
> FEATURE(`dnsbl', `bl.spamcop.net', `"550 Email rejected due to sending 
> server misconfiguration - see: 
> http://spamcop.net/bl.shtml?"$&{client_addr}')dnl
> DAEMON_OPTIONS(`Port=smtp,Name=MTA25-RX,M=SA')dnl
> FEATURE(`accept_unresolvable_domains')dnl
> LOCAL_DOMAIN(`localhost.localdomain')dnl
> define(`confPID_FILE', `/var/run/sendmail-rx.pid')dnl
> define(`STATUS_FILE', `/etc/mail/stat-rx')dnl
> define(`QUEUE_DIR', `/var/spool/mqueue-rx')dnl
> define(`confQUEUE_SORT_ORDER', `Modification')dnl
> QUEUE_GROUP(`mqueue',``P=/var/spool/mqueue-rx,R=4,F=f'')dnl
> FEATURE(stickyhost)dnl Keep env addr "u at local.host" when fwd to MAIL_HUB
> define(`MAIL_HUB',   `esmtp:[127.0.0.1]')dnl  fw all local mail to amavisd
> define(`SMART_HOST', `esmtp:[127.0.0.1]')dnl  fw all other mail to amavisd
> define(`LOCAL_RELAY',`esmtp:[127.0.0.1]')dnl
> define(`confDELIVERY_MODE',`q')dnl a must, if u want to specify nr of q 
> runners
> define(`ESMTP_MAILER_ARGS',`TCP $h 10024')dnl

Right, here you modify the target port of that Sendmail instance. And I
bet $1.000 that if you tcpdump on the main mail server you will see the
sending attempt to come in there at port 10024 and thus Sendmail (this
one here) gets a connection refused.

> define(`SMTP_MAILER_MAXMSGS',`10')dnl  Max no. of msgs in a single 
> connection
> define(`ALIAS_FILE', `/etc/aliases')dnl
> dnl # three undefines for dual-sendmail setup - jh
> undefine(`UUCP_RELAY')dnl
> undefine(`BITNET_RELAY')dnl
> undefine(`DECNET_RELAY')dnl
> MAILER(smtp)dnl

Alexander




More information about the CentOS mailing list