Hi
First of all, thank you for your great tutorial. It really saved me a lot of time.
I have one problem though. I cannot send emails via Outlook.
This IS working
- i can send emails via squirrel
- i can receive emails via squirrel
- i can receive emails via outlook
but i
cannot send emails via outlook
-outlook is configured to use the same username and password as for receiving emails
-Port in use for smtp is 25
cat /var/log/mail.log:
Code:
Nov 24 13:09:36 NbI20841-01 postfix/smtpd[19830]: warning: XXXX: SASL LOGIN authentication failed: authentication failure
Nov 24 13:09:36 YYYYY postfix/smtpd[19830]: lost connection after AUTH from XXXXXX
Nov 24 13:09:36 YYYYYY postfix/smtpd[19830]: disconnect from XXXXX.
I've restarted all auth daemons mentioned in the tutorial, but the problems seems to persist.
cat /etc/pam.d/smtp:
Code:
auth required pam_mysql.so user=mail_admin passwd=mail_admin_password host=127.0.0.1 db=mail table=users usercolumn=email passwdcolumn=password crypt=1
account sufficient pam_mysql.so user=mail_admin passwd=mail_admin_password host=127.0.0.1 db=mail table=users usercolumn=email passwdcolumn=password crypt=1
cat /etc/default/saslauthd
Code:
#
# Settings for saslauthd daemon
# Please read /usr/share/doc/sasl2-bin/README.Debian for details.
#
# Should saslauthd run automatically on startup? (default: no)
START=yes
# Description of this saslauthd instance. Recommended.
# (suggestion: SASL Authentication Daemon)
DESC="SASL Authentication Daemon"
# Short name of this saslauthd instance. Strongly recommended.
# (suggestion: saslauthd)
NAME="saslauthd"
# Which authentication mechanisms should saslauthd use? (default: pam)
#
# Available options in this Debian package:
# getpwent -- use the getpwent() library function
# kerberos5 -- use Kerberos 5
# pam -- use PAM
# rimap -- use a remote IMAP server
# shadow -- use the local shadow password file
# sasldb -- use the local sasldb database file
# ldap -- use LDAP (configuration is in /etc/saslauthd.conf)
#
# Only one option may be used at a time. See the saslauthd man page
# for more information.
#
# Example: MECHANISMS="pam"
MECHANISMS="pam"
# Additional options for this mechanism. (default: none)
# See the saslauthd man page for information about mech-specific options.
MECH_OPTIONS=""
# How many saslauthd processes should we run? (default: 5)
# A value of 0 will fork a new process for each connection.
THREADS=5
# Other options (default: -c -m /var/run/saslauthd)
# Note: You MUST specify the -m option or saslauthd won't run!
#
# See /usr/share/doc/sasl2-bin/README.Debian for Debian-specific information.
# See the saslauthd man page for general information about these options.
#
# Example for postfix users: "-c -m /var/spool/postfix/var/run/saslauthd"
#OPTIONS="-c -m /var/run/saslauthd"
OPTIONS="-c -m /var/spool/postfix/var/run/saslauthd -r"
cat /etc/postfix/sasl/smtpd.conf
Code:
pwcheck_method: saslauthd
mech_list: plain login
allow_plaintext: true
auxprop_plugin: mysql
sql_hostnames: 127.0.0.1
sql_user: mail_admin
sql_passwd: mail_admin_password
sql_database: mail
sql_select: select password from users where email = '%u'
netstat -tpa
Code:
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:https *:* LISTEN 31857/apache2
tcp 0 0 *:51234 *:* LISTEN 24366/server_linux
tcp 0 0 *:14534 *:* LISTEN 24366/server_linux
tcp 0 0 localhost.localdo:10024 *:* LISTEN 7573/amavisd (maste
tcp 0 0 localhost.localdo:10025 *:* LISTEN 18141/master
tcp 0 0 localhost.localdo:mysql *:* LISTEN 21638/mysqld
tcp 0 0 *:www *:* LISTEN 31857/apache2
tcp 0 0 *:smtp *:* LISTEN 18141/master
tcp6 0 0 [::]:imaps [::]:* LISTEN 18409/couriertcpd
tcp6 0 0 [::]:pop3s [::]:* LISTEN 19502/couriertcpd
tcp6 0 0 [::]:pop3 [::]:* LISTEN 19465/couriertcpd
tcp6 0 0 [::]:imap2 [::]:* LISTEN 18372/couriertcpd
tcp6 0 0 [::]:ftp [::]:* LISTEN 25846/proftpd: (acc
tcp6 0 0 [::]:ssh [::]:* LISTEN 14038/sshd
tcp6 0 0 [::]:smtp [::]:* LISTEN 18141/master
Thanks for your help in advance
N.
Recent comments
1 day 8 hours ago
1 day 13 hours ago
1 day 17 hours ago
1 day 19 hours ago
2 days 9 hours ago
2 days 9 hours ago
2 days 14 hours ago
2 days 21 hours ago
2 days 22 hours ago
2 days 23 hours ago