Hello,
I'm trying to figure out how to use Andrzej's realtime cyrus and sendmail mechanism on a NetBSD box I'm building at the moment.
The box's job is to relay outbound mail, and to accept mail for one or two domains, with those domains listed as virtual domains in imapd.conf
For now, just the one domain while I set this up :
imapd.conf : configdirectory: /var/imap partition-default: /var/spool/imap sieveusehomedir: true hashimapspool: false sendmail: /usr/sbin/sendmail sasl_mech_list: PLAIN altnamespace: yes unixhierarchysep: yes virtdomains: userid defaultdomain: foo.com.au admins: cyrus [EMAIL PROTECTED] sasl_pwcheck_method: auxprop
I've a cyrus user [EMAIL PROTECTED] : mail: {298} cyradm --user cyrus localhost IMAP Password: localhost> localhost> lm user/[EMAIL PROTECTED] (\HasNoChildren)
I've got smmapd running from cyrus.conf :
smmapd cmd="smmapd" listen="/data/cyrus/imap/socket/smmapd" prefork=1
It's running, the socket exists and sendmail's compiled with socketmap support.
I've also done the following, from the instructions on http://anfi.homeunix.net/sendmail/rtcyrus2.html :
http://anfi.homeunix.net/sendmail/mrs.m4 cp to /usr/pkg/share/sendmail/feature/.
http://anfi.homeunix.net/sendmail/mrs-8.12.11.patch applied to /usr/pkg/share/sendmail/m4/proto.m4
http://anfi.homeunix.net/sendmail/cyrusv2.m4 cp to /usr/pkg/share/sendmail/mailer/.
http://anfi.homeunix.net/sendmail/mrs_cyrus.m4 cp to /usr/pkg/share/sendmail/feature/.
I'm not sure what Andrzej means when he lists the options for how to make this work, so I'm a bit confused re which of the mailertable etc options to use.
My foo.mc file is :
define(`LOCAL_RELAY',`mrs_cyrus_user:dummy')dnl FEATURE(always_add_domain)dnl FEATURE(mailertable, hash /etc/mail/mailertable)dnl FEATURE(virtusertable, hash /etc/mail/virtusertable)dnl VIRTUSER_DOMAIN_FILE(`/etc/mail/virthosts')dnl FEATURE(access_db, hash -T<TMPF> /etc/mail/access)dnl FEATURE(`mrs')dnl FEATURE(`mrs_cyrus')dnl
DAEMON_OPTIONS(`Name=MTA-v4, Family=inet')dnl DAEMON_OPTIONS(`Name=MTA-v6, Family=inet6')dnl
define(`confME_TOO', True)dnl define(`confTRUSTED_USERS', majordom)dnl
OSTYPE(bsd4.4)dnl DOMAIN(generic)dnl
INPUT_MAIL_FILTER(`clmilter',`S=local:/var/run/clamav.sock, F=,T=S:4m;R:4m')dnl
INPUT_MAIL_FILTER(`spamassassin', `S=local:/var/run/spamass.sock, F=,T=C:15m;S:4m;R:4m;E:10m')
dnl dnl Enforce valid Message-Id to help stop spammers dnl LOCAL_RULESETS HMessage-Id: $>CheckMessageId
SCheckMessageId R< $+ @ $+ > $@ OK R$* $#error $: 553 Header Error
MAILER(smtp) MAILER(cyrusv2)
local-host-names is foo.com.au mail.foo.com.au
mailertable is : mail.foo.com.au mrs_cyrus_user:error:5.1.1:550 User unknown foo.com.au mrs_cyrus_mailertable:error:5.1.1:550 User unknown
It's not accepting mail for [EMAIL PROTECTED], and the sendmail debug shows :
mail: {297} sendmail -C ./benfab4.cf -d60.5 -bv [EMAIL PROTECTED]
map_lookup(dequote, carl, %0=carl) => NOT FOUND (0)
map_lookup(host, foo.com.au, %0=foo.com.au) => foo.com.au. (0)
map_lookup(dequote, bar, %0=bar) => NOT FOUND (0)
map_lookup(virtuser, [EMAIL PROTECTED], [EMAIL PROTECTED], %1=bar) => NOT FOUND (0)
map_lookup(virtuser, @foo.com.au, [EMAIL PROTECTED], %1=bar) => NOT FOUND (0)
map_lookup(cyrus, bar, %0=bar) => NOT FOUND (75)
map_lookup(cyrus, bar) tempfail: errno=0
map_lookup tempfail: returning "bar<TMPF>"
[EMAIL PROTECTED] deliverable: mailer local, user bar
Can anyone set me straight?
thanks!
Carl
My /etc/mail files are at present :
--- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html