Sudden problem with mrs_cyrus_mailertable (cant receive email on any domains) (let me know if this is off topic and needs to go on sendmail list instead)

Jesper K. Pedersen jkp at solnet.homeip.net
Thu Feb 22 14:17:51 EST 2007


On Thu, 22 Feb 2007 12:08:12 +0100
"Jesper K. Pedersen" <jkp at solnet.homeip.net> wrote:

> Having updated my Fedora Core 5 I found myself in a difficult position
> 
> When verifying a local address "jkp at solnet.homeip.net" I get an error.
> 
> ~/# sendmail -d60.5 -bv jkp at solnet.homeip.net  
> 
> map_lookup(dequote, root, %0=root) => NOT FOUND (0)
> map_lookup(host, solnet.homeip.net, %0=solnet.homeip.net) =>
> solnet.homeip.net. (0) map_lookup(mailertable, solnet.homeip.net,
> %0=solnet.homeip.net) => mrs_cyrus_mailertable:error:5.1.1:550 User
> unknown (0) buildaddr: unknown mailer mrs_cyrus_mailertable
> 
> I have attached a more detailed debug output from the -bv trace.
> 
> It looks like sendmail didnt want to use the mrc_cyrus_mailertable
> setup any longer.
> 

I am sorry for the vague information given in the original email but
after having spent a good many hours trying to debug this I think I was
overly tired.

I have been unsuccessfull in correcting the problem - but I went to an
alternate sollution using mailertable and cyrusv2d mailer (instead of
Anfi's real time cyrus version 2)

This however mean that sendmail is no longer able to reject the message
but ends up bouncing emails not inteded for our users so I am still
interested in others that have a working sollution with similar setup :

uname -a
Linux rhea.solnet 2.6.19-1.2288.fc5 #1 Sat Feb 10 14:52:17 EST
2007 i686 athlon i386 GNU/L

sendmail-8.13.8-1.fc5
sendmail-cf-8.13.8-1.fc5

cyrus-imapd-2.3.1-2.7.fc5
cyrus-imapd-utils-2.3.1-2.7.fc5

Files patched according to Anfi's directions
( http://anfi.homeunix.net/sendmail/rtcyrus2.html )
 Cyrus is up and operating but sendmail is in fairly minimal setup with
sendmail / mailertable -> cyrus setup (can not get rtcyrus2 to work)

Current working sendmail.mc
divert(-1)dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`FamPed email service')dnl
OSTYPE(`linux')dnl
define(`confDEF_USER_ID',``8:13'')dnl
undefine(`UUCP_RELAY')dnl
undefine(`BITNET_RELAY')dnl
define(`STATUS_FILE', `/var/log/mail/statistics')dnl
dnl # define(`confDONT_BLAME_SENDMAIL',`GroupWritableSaslFile')dnl
define(`_FFR_MILTER', `1')dnl
dnl #
INPUT_MAIL_FILTER(`milter-spamc',`S=local:/var/run/spamass-milter/spamass-milter.sock,
T=C:1m;S:1m;R:2m;E:4m')
INPUT_MAIL_FILTER(`milter-spamc',`S=local:/var/run/spamass-milter/spamass-milter.sock,
T=C:15m;S:5m;R:5m;E:10m')dnl dnl # INPUT_MAIL_FILTER(`clmilter',
`S=local:local:/var/run/clamav-milter/clamav.sock, F=, T=S:4m;R:4m')dnl
define(`confINPUT_MAIL_FILTERS', `milter-spamc')dnl
define(`confTO_CONNECT', `1m')dnl
define(`confTRY_NULL_MX_LIST',true)dnl define(`ALIAS_FILE',
`/etc/aliases')dnl define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl
define(`confPRIVACY_FLAGS',
`authwarnings,novrfy,noexpn,restrictqrun')dnl
define(`confAUTH_OPTIONS', `A p y')dnl
define(`confCACERT_PATH',`/etc/mail/certs')dnl
define(`confCACERT',`/etc/mail/certs/mycert.pem')dnl
define(`confSERVER_CERT',`/etc/mail/certs/mycert.pem')dnl
define(`confSERVER_KEY',`/etc/mail/certs/mykey.pem')dnl
define(`confCLIENT_CERT',`/etc/mail/certs/mycert.pem')dnl
define(`confCLIENT_KEY',`/etc/mail/certs/mykey.pem')dnl
define(`confAUTH_MECHANISMS', `LOGIN PLAIN CRAM-MD5 DIGEST-MD5')dnl
define(`confLOG_LEVEL', `14')dnl
TRUST_AUTH_MECH(`LOGIN PLAIN CRAM-MD5 DIGEST-MD5')dnl
DAEMON_OPTIONS(`Name=IPv4, Family=inet')dnl 
DAEMON_OPTIONS(`Port=smtps,Name=TLSMTA, M=s')dnl
FEATURE(`mrs')dnl
FEATURE(`mrs_cyrus')dnl
FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl
FEATURE(`access_db',`hash -T<TMPF> -o /etc/mail/access.db')dnl dnl
FEATURE(`blacklist_recipients')dnl
EXPOSED_USER(`root')dnl
MAILER(cyrusv2)dnl
MAILER(local)dnl
MAILER(smtp)dnl

Mailertable :
solnet.homeip.net       cyrusv2d:/var/imap/socket/lmtp
nilux.dk                cyrusv2d:/var/imap/socket/lmtp
famped.dk               cyrusv2d:/var/imap/socket/lmtp

Access :
localhost.localdomain           RELAY
localhost                       RELAY
127.0.0.1                       RELAY
10.1.1                          RELAY
to:solnet.homeip.net            RELAY
to:nilux.dk                     RELAY
to:famped.dk                    RELAY

This is the working setup - my desire was to return to our previously
working state (which suddenly stopped working since yesterday)

Mailertable :
solnet.homeip.net       mrs_cyrus_mailertable:error:5.1.1:550 User
unknown 
nilux.dk                mrs_cyrus_mailertable:error:5.1.1:550 User
unknown
famped.dk		mrs_cyrus_mailertable:error:5.1.1:550 User
unknown

With the RTC2 setup I now get this error :
sendmail -bv jkp at solnet.homeip.net  
buildaddr: unknown mailer mrs_cyrus_mailertable

Any advice is greatly appreciated
  Jesper K. Pedersen


More information about the Info-cyrus mailing list