LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   dovecot + sendmail not fully working (http://www.linuxquestions.org/questions/linux-server-73/dovecot-sendmail-not-fully-working-613822/)

thefreak 01-15-2008 05:41 PM

dovecot + sendmail not fully working
 
Hi I need to install a pop3/webmail and sendmail for one of our website. My sendmail is working great, after passing 2 days to make hotmail taking my email. Now i try to setup my pop3 with dovecot but nothing is working and really dont understand the trouble i have here.

the trouble is quite simple user unknown from sendmail when receiving email

i think its because sendmail try to check in the wrong file for the dovecot virtual users. if i create a local user its working but not for my domain.com.

sendmail[22430]: m0FMv5pK022430: from=<sender>, size=9345, class=0, nrcpts=1, msgid=<200801152257.m0FMv5pK022430@domain.com>, proto=ESMTP, daemon=MTA, relay=senderdomain.com [***** ip]
sendmail[22437]: m0FMv5pK022430: to=client, ctladdr=<client> (8/0), delay=00:00:01, mailer=local, pri=129345, dsn=5.1.1, stat=User unknown
sendmail[22437]: m0FMv5pK022430: to=<client>, delay=00:00:01, mailer=local, pri=129345, dsn=5.1.1, stat=User unknown
sendmail[22437]: m0FMv5pK022430: m0FMv6pK022437: DSN: User unknown

if i create a local user and put it in aliases for this client email i dont see unknown user but the email is no where my vuser dont have it and local user didnt. where im supose to check to make sendmail send email to "dovecot user"


here my conf of dovecot
###########################
# Remove pop3 things if you don't want them
protocols = pop3

# It's nice to have separate log files for Dovecot. You could do this
# by changing syslog configuration also, but this is easier.
log_path = /var/log/dovecot.log
info_log_path = /var/log/dovecot-info.log

# Disable SSL for now.
ssl_disable = yes
disable_plaintext_auth = no

# We're using Maildir format
#mail_location = maildir:~/Maildir
default_mail_env = mbox:/var/mail/%u.mbox:INBOX=/var/mail/%u:INDEX=/var/mail-index/%u
# If you're using POP3, you'll need this:
pop3_uidl_format = %08Xu%08Xv

# Optimizations:
dotlock_use_excl=yes
maildir_copy_with_hardlinks=yes

# Authentication configuration:
auth_verbose = yes

auth default {
mechanisms = plain
passdb passwd-file {
args = /etc/dovecot/passwd
}

userdb passwd-file {
args = /etc/dovecot/passwd
}


}
listen =
ssl_listen =


heres the sendmail conf

###########################
divert(-1)dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`Sendmail pour domain.com')dnl
OSTYPE(`linux')dnl
define(`confMAX_MESSAGE_SIZE', `20000000')dnl
define(`confDEF_USER_ID',``8:12'')dnl
define(`confTO_CONNECT',`1m')dnl
define(`confTO_QUEUERETURN',`1d')dnl
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
define(`ALIAS_FILE',`/etc/aliases')dnl
define(`consSMTP_LOGIN_MSG',`$j $b')dnl
FEATURE(`no_default_msa',`dnl')dnl
FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
FEATURE(`nouucp',`reject')dnl
FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl
FEATURE(`always_add_domain',`domain.com')dnl
FEATURE(`masquerade_entire_domain')dnl
FEATURE(`use_cw_file')dnl
FEATURE(`local_procmail',`',`procmail -t -Y -a $h -d $u')dnl
FEATURE(`accept_unresolvable_domains')dnl
FEATURE(`access_db',`hash -T<TMPF> -o /etc/mail/access.db')dnl
FEATURE(`blacklist_recipients')dnl
MASQUERADE_AS(`domain.com')dnl
MASQUERADE_DOMAIN(`domain.com')dnl
EXPOSED_USER(`root')dnl
MAILER(`smtp')dnl
MAILER(`procmail')dnl
###########################

Rafael25 08-06-2012 08:37 AM

Hi,

Did you manage to get the two working ??

Thanks in advance

Regards,
Rafael


All times are GMT -5. The time now is 01:01 PM.