FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 05-15-2012, 09:59 PM
Jussi Hirvi
 
Default Sendmail problem - baffled

On 16.5.2012 0.37, Frank Cox wrote:
> What's the point of that? (Genuine question.)
>
> One server here, one across town, or even two separate boxes in a single room
> -- sure. But in the same box? If the the box is on fire, now you're out both
> your main and your backup server.
>
> I must be missing something; what is it?

No, you are right. However, two servers still are better than one. There
are cases when one of them is down but not the other. And later, if I
get another box, I can move the vm there easily.

However, let's not get sidetracked too deep in this.

- Jussi
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 05-15-2012, 10:03 PM
Alexander Dalloz
 
Default Sendmail problem - baffled

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,ne edexpnhelo,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@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

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 05-15-2012, 11:42 PM
Jussi Hirvi
 
Default Sendmail problem - baffled

On 16.5.2012 1.03, Alexander Dalloz wrote:
>> 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.

Looks like you are right - and that's a breakthrough! I checked on the
primary mail server using simply
tcpdump host 83.143.217.179
and I noticed connections to port 10024.

I should have used tcpdump earlier in this process - but better late
than never.

Now I just have to fix the sendmail ("rx" instance) config so that it
really sends the email to localhost (where amavis is listening), instead
of trying to send directly to the final destination. So far no luck. A
similar setup works ok on the primary mail server, so I don't know why
this one does not work.

- Jussi
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 05-16-2012, 01:56 AM
Jussi Hirvi
 
Default Sendmail problem - baffled

On 16.5.2012 2.42, Jussi Hirvi wrote:
> Now I just have to fix the sendmail ("rx" instance) config so that it
> really sends the email to localhost (where amavis is listening), instead
> of trying to send directly to the final destination.

Ok, I found it, and it is *so* obvious. Still it took me hours to find it.

I had this in my config for the "rx" instance of sendmail.

FEATURE(`mailertable', `hash /etc/mail/mailertable.db')

And my mailertable contained static routing for all domains that are
local to our primary mail server. Example:

greenspot.fi esmtp:[mail.greenspot.fi]

So sendmail was only following orders. Solution: comment out the
mailertable line from the sendmail config.

Thanks to everyone, and especially to Alexander for reading so carefully
my emails and giving the breakthrough tip. I love you!

- Jussi
4.55 AM local time
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 04:28 AM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org