Sendmail + Cyrus + Imap + Virtual Hosting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi List,

   I'm working on setting up a virtual hosting server for multiple domains,
and I'm running into a bit of trouble with the email.  I'm using Sendmail
and Cyrus sasl imap to handle the mail, but can't for the life of me figure
out how to get them to handle email for multiple domains. I'm using
Sendmail-8.13.1-2, Cyrus-sasl-2.1.19-3 and Cyrus-imapd-2.2.10-3. At this
time I can log into my server using either a local or virt-domain user
using, for instance, Squirrelmail but my system doesn't find mailbox for my
virtual domain users.
Any help would be appreciate.
Thanks in advanced,
Yezid Mendoza.


This is part of my /var/log/maillog file related to this issue:
***********
Feb 22 08:57:21 srvdanac sendmail[32712]: j1MCvKrq032712:
from=<ymj_sistemas@xxxxxxxxx>, size=1289, class=0, nrcpts=1,
msgid=<20050222130124.32261.qmail@xxxxxxxxxxxxxxxxxxxxxxx>, proto=SMTP,
daemon=MTA, relay=web52801.mail.yahoo.com [206.190.39.165]
Feb 22 08:57:21 srvdanac lmtpunix[32711]: accepted connection
Feb 22 08:57:21 srvdanac lmtpunix[32711]: lmtp connection preauth'd as
postman
Feb 22 08:57:21 srvdanac master[32716]: about to exec
/usr/lib/cyrus-imapd/lmtpd
Feb 22 08:57:21 srvdanac lmtpunix[32711]:
verify_user(user./var/lib/imap/socket/lmtp) failed: Mailbox does not exist
Feb 22 08:57:21 srvdanac sendmail[32714]: j1MCvKrq032712: smtpquit: mailer
cyrus exited with exit value 65
Feb 22 08:57:21 srvdanac sendmail[32714]: j1MCvKrq032712: to=<USER@DOMAIN2>,
delay=00:00:01, xdelay=00:00:00, mailer=cyrus, pri=121289,
relay=/var/lib/imap/socket/lmtp, dsn=4.0.0, stat=Deferred:Connection reset
by MY-HOST.DEFAULT-DOMAIN
Feb 22 08:57:21 srvdanac lmtpunix[32716]: executed
**********
This is my mailertable file:
*********
Default-Domain   cyrus:/var/lib/imap/socket/lmtp
Domain2   cyrus:/var/lib/imap/socket/lmtp
*********
This is my /etc/imap.conf file:
********
configdirectory: /var/lib/imap
partition-default: /var/spool/imap
admins: cyrus
allowanonymouslogin: no
sievedir: /var/lib/imap/sieve
sendmail: /usr/sbin/sendmail
hashimapspool: true
sasl_pwcheck_method: saslauthd
sasl_mech_list: PLAIN
virtdomains: yes
defaultdomain: my-default-domain
tls_cert_file: /usr/share/ssl/certs/cyrus-imapd.pem
tls_key_file: /usr/share/ssl/certs/cyrus-imapd.pem
tls_ca_file: /usr/share/ssl/certs/ca-bundle.crt
*************

This is my .mc file:

***********
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(`confLOCAL_MAILER',`cyrus')dnl
define(`CYRUS_MAILER_ARGS',`FILE /var/lib/imap/socket/lmtp')dnl
define(`CYRUS_MAILER_FLAGS',`A5@/:|S')
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
define(`confTO_IDENT', `0')dnl
dnl FEATURE(delay_checks)dnl
FEATURE(`no_default_msa',`dnl')dnl
FEATURE(`smrsh',`/usr/sbin/smrsh')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
dnl #
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
EXPOSED_USER(`root')dnl
dnl #
dnl # The following causes sendmail to only listen on the IPv4 loopback
address
dnl # 127.0.0.1 and not on any other network devices. Remove the loopback
dnl # address restriction to accept email from the internet or intranet.
dnl #
DAEMON_OPTIONS(`Port=smtp,Name=MTA')dnl
dnl #
dnl #
LOCAL_DOMAIN(`localhost.localdomain')dnl
dnl #
dnl #
dnl MASQUERADE_DOMAIN(localhost)dnl
dnl MASQUERADE_DOMAIN(localhost.localdomain)dnl
dnl MASQUERADE_DOMAIN(mydomainalias.com)dnl
dnl MASQUERADE_DOMAIN(mydomain.lan)dnl
MAILER(`local')dnl
MAILER(`cyrus')dnl
MAILER(`smtp')dnl
*********************

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux