OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
I am confused by Postfix, VM-POP3 & OpenWebMail!

From: ?? (rainswallow263.net)
Date: Wed Mar 03 2004 - 06:14:35 CST


postfix-users,

I have installed vm-pop3d, postfix and OpenWebMail according to Kevin L. Ellis' guide "How to setup virtual users on
Open WebMail using Postfix & vm-pop3d". Now I can login into OWM though my virtual user and virtual domain, for example
moobemoobe.com, and send email to others guys. My DNS settings are list at below:

>> moobe.com
Server: dns.bizcn.com
Address: 218.5.77.19

moobe.com MX preference = 10, mail exchanger = mail.moobe.com
moobe.com nameserver = dns.bizcn.com
mail.moobe.com internet address = 211.157.7.105
dns.bizcn.com internet address = 218.5.77.19

But I have two issues:
1. I can not send email to moobemoobe.com from other mail address, such as the third party email address. The error
replyed email is like:
< moobemoobe.com> : Connected to remote host, but it does not like recipient.
moobemail.moobe.com has the problem.

2. As my mail user is a virtual user at virtual domain, how can I send and receive my emails through the email
client, such as Outlook. I have configured my postfix to support SASL for SMTP authentication. My POP3 username is
moobemoobe.com, SMTP authentication use the same information as POP3. I can succeed to login into my POP3 server,
although there is no any email cause the first issue. But I can not send any email, my email client can not pass the SMTP
authentication: 535 authentication failed. What's the matter? How should I config Postfix to support virturl users pass
SMTP authentication and send email through mail client? The following is the error logs from maillog and secure.

########################################################################
# My configuration and logs
########################################################################

[rootmail log]# tail -f /var/log/maillog
Mar 3 20:00:00 mail postfix/smtpd[1631]: connect from unknown[210.82.46.1]
Mar 3 20:00:03 mail postfix/smtpd[1631]: warning: unknown[210.82.46.1]: SASL LOGIN authentication failed
Mar 3 20:00:04 mail postfix/smtpd[1631]: lost connection after AUTH from unknown[210.82.46.1]
Mar 3 20:00:04 mail postfix/smtpd[1631]: disconnect from unknown[210.82.46.1]

[rootmail log]# tail -f /var/log/secure
Mar 3 20:00:01 mail smtp(pam_unix)[1602]: check pass; user unknown
Mar 3 20:00:01 mail smtp(pam_unix)[1602]: authentication failure; logname= uid=0 euid=0 tty= ruser= rhost=
Mar 3 20:00:03 mail saslauthd[1602]: DEBUG: auth_pam: pam_authenticate failed: Authentication failure
Mar 3 20:00:03 mail saslauthd[1602]: do_auth : auth failure: [user=moobemoobe.com] [service=smtp] [realm=]
[mech=pam] [reason=PAM auth error]

[rootmail log]# tail -f /var/log/message
Mar 3 20:01:48 mail smtp(pam_unix)[1603]: check pass; user unknown
Mar 3 20:01:48 mail smtp(pam_unix)[1603]: authentication failure; logname= uid=0 euid=0 tty= ruser= rhost=
Mar 3 20:01:50 mail saslauthd[1603]: do_auth : auth failure: [user=moobemoobe.com] [service=smtp] [realm=]
[mech=pam] [reason=PAM auth error]

[rootmail log]# more /usr/lib/sasl2/smtpd.conf
pwcheck_method: saslauthd

[rootmail log]# more /etc/sysconfig/saslauthd
MECH=pam

[rootmail log]# more /etc/pam.d/smtp
#%PAM-1.0
auth required pam_stack.so service=system-auth
account required pam_stack.so service=system-auth

[rootmail log]# postconf -n
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
inet_interfaces = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, $mydomain, mail.$mydomain, www.$mydomain, wap.$mydomain
mydomain = moobe.com
myhostname = mail.moobe.com
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.0.11/README_FILES
sample_directory = /usr/share/doc/postfix-2.0.11/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_client_restrictions = permit_sasl_authenticated
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, check_relay_domains
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
unknown_local_recipient_reject_code = 450
virtual_alias_maps = hash:/etc/postfix/aliases
virtual_mailbox_base = /var/spool/virtual
  
[rootmail log]# hostname
mail.moobe.com

[rootmail log]# domainname
moobe.com

Eric Zhao
rainswallow263.net
2004-03-03