Dear all,
Running FC2, all updates. On /etc/sysconfig/saslathd:
MECH=pam
On /etc/imapd.conf:
configdirectory: /var/lib/imap partition-default: /var/spool/imap admins: cyrus virtdomains: on sievedir: /var/lib/imap/sieve sendmail: /usr/sbin/sendmail hashimapspool: true sasl_pwcheck_method: auxprop sasl_mech_list: PLAIN tls_cert_file: /usr/share/ssl/certs/cyrus-imapd.pem tls_key_file: /usr/share/ssl/certs/cyrus-imapd.pem createonpost: true defaultdomain: olimpus.us
The sasldblistusers2 contains:
[root@us etc]# sasldblistusers2 cyrus@xxxxxxxxxxxxx: userPassword cyrus@xxxxxxxxxx: userPassword root@xxxxxxxxxx: userPassword root@xxxxxxxxxxxxx: userPassword david@xxxxxxxxxxxx: userPassword david@xxxxxxxxxx: userPassword
The cyradm has:
[root@us etc]# cyradm --user cyrus localhost IMAP Password: random> lm user.david.Trash@xxxxxxxxxxxx (\HasNoChildren) user.david@xxxxxxxxxxxx (\HasChildren) user.root (\HasChildren) user.root.Trash (\HasNoChildren) random>
And sendmail.mc has (line ending with \ indicates a wrap):
divert(-1)dnl include(`/usr/share/sendmail-cf/m4/cf.m4')dnl VERSIONID(`setup for Red Hat Linux')dnl OSTYPE(`linux')dnl define(`confDEF_USER_ID',``8:12'')dnl dnl define(`confAUTO_REBUILD')dnl define(`confTO_CONNECT', `1m')dnl define(`confTRY_NULL_MX_LIST',true)dnl define(`confDONT_PROBE_INTERFACES',true)dnl define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl define(`ALIAS_FILE', `/etc/aliases')dnl define(`STATUS_FILE', `/var/log/mail/statistics')dnl define(`UUCP_MAILER_MAX', `2000000')dnl define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl define(`confAUTH_OPTIONS', `A')dnl TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN \ PLAIN')dnl define(`CERT_DIR',`/etc/mail/certs') define(`confCACERT_PATH',`CERT_DIR') define(`confCACERT',`CERT_DIR/cacert.pem') define(`confSERVER_CERT',`CERT_DIR/cert.pem') define(`confSERVER_KEY',`CERT_DIR/key.pem') define(`confCLIENT_CERT',`CERT_DIR/cert.pem') define(`confCLIENT_KEY',`CERT_DIR/key.pem') FEATURE(`no_default_msa',`dnl')dnl FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl FEATURE(redirect)dnl FEATURE(always_add_domain)dnl FEATURE(use_cw_file)dnl FEATURE(use_ct_file)dnl FEATURE(`access_db',`hash -T<TMPF> -o /etc/mail/access.db')dnl FEATURE(`blacklist_recipients')dnl EXPOSED_USER(`root')dnl DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl FEATURE(`accept_unresolvable_domains')dnl LOCAL_DOMAIN(`localhost.localdomain')dnl FEATURE(local_procmail,`',`procmail -t -Y -a $h -d $u')dnl MAILER(procmail)dnl MAILER(smtp)dnl define(`CYRUSV2_MAILER_ARGS', `FILE /var/lib/imap/socket/lmtp')dnl define(`confLOCAL_MAILER',`cyrusv2') MAILER(cyrusv2)
If I:
[root@us root]# cat test.txt | /usr/lib/syrus-imap/deliver david@xxxxxxxxxxxx
Where test.txt is an email (all header and all), the message gets delivered without problem, like so:
Jun 16 13:50:31 us master[4146]: process 4177 exited, status 0
Jun 16 13:50:39 us lmtpunix[4211]: accepted connection
Jun 16 13:50:39 us lmtpunix[4211]: lmtp connection preauth'd as postman
Jun 16 13:50:39 us master[4226]: about to exec /usr/lib/cyrus-imapd/lmtpd
Jun 16 13:50:39 us lmtpunix[4226]: executed
Jun 16 13:50:39 us lmtpunix[4211]: IOERROR: fstating sieve script /var/lib/imap/sieve/domain/c/collantes.us/d/david/defaultbc: No such file or directory
Jun 16 13:50:39 us lmtpunix[4211]: duplicate_check: <2004061619@xxxxxxxxxxxxxxxxxxxx> collantes.us!user.david 0
Jun 16 13:50:39 us lmtpunix[4211]: mystore: starting txn 2147483655
Jun 16 13:50:39 us lmtpunix[4211]: mystore: committing txn 2147483655
Jun 16 13:50:39 us lmtpunix[4211]: duplicate_mark: <2004061619@xxxxxxxxxxxxxxxxxxxx> collantes.us!user.david 1087411839 3
But If I send a test email to it, like so:
[root@us root]# mail -v david@xxxxxxxxxxxx Subject: Test Testing...