PDA

View Full Version : ASSP With ISPConfig & Postfix


infused
10th September 2007, 00:44
Hi all. I have installed ASSP on my box with ispconfig.

I am running into some big problems.

ASSP is filtering incoming mail no problem, my issue is with outgoing mail. I cannot send outgoing mail, also, the mailserver is now acting as an open relay.

ASSP is on my external ip port 25. Postfix is on localhost:125

Sending an email without authentication works (open relay, never use to) but trying to send using authentication does not work.

I get this message:

This is the mail system at host i2.net.nz.

################################################## ##################
# THIS IS A WARNING ONLY. YOU DO NOT NEED TO RESEND YOUR MESSAGE. #
################################################## ##################

Your message could not be delivered for more than 4 hour(s).
It will be retried until it is 5 day(s) old.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

The mail system

<*>: mail transport unavailable

Here is my master.cf

web-svr01:/usr/share/assp/logs# cat /etc/postfix/master.cf
#
# Postfix master process configuration file. For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").
#
# ================================================== ========================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ================================================== ========================
localhost:125 inet n - - - - smtpd
#submission inet n - - - - smtpd
# -o smtpd_enforce_tls=yes
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticate d,reject
#smtps inet n - - - - smtpd
# -o smtpd_tls_wrappermode=yes
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticate d,reject
#628 inet n - - - - qmqpd
pickup fifo n - - 60 1 pickup
cleanup unix n - - - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - - 300 1 oqmgr
tlsmgr unix - - - 1000? 1 tlsmgr
rewrite unix - - - - - trivial-rewrite
bounce unix - - - - 0 bounce
defer unix - - - - 0 bounce
trace unix - - - - 0 bounce
verify unix - - - - 1 verify
flush unix n - - 1000? 0 flush
proxymap unix - - n - - proxymap
localhost:125 inet n - n - - smtpd
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay unix - - - - - smtp
-o fallback_relay=
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - - - - showq
error unix - - - - - error
discard unix - - - - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - - - - lmtp
anvil unix - - - - 1 anvil
scache unix - - - - 1 scache
#
# ================================================== ==================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent. See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ================================================== ==================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
#
# See the Postfix UUCP_README file for configuration details.
#
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
#
# Other external delivery methods.
#
ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix - n n - 2 pipe
flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
mailman unix - n n - - pipe
flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
${nexthop} ${user}

Also have this in in /var/log/mail.log

Sep 10 09:54:56 web-svr01 postfix/qmgr[16428]: warning: connect to transport smtp: Connection refused
Sep 10 09:55:54 web-svr01 courierpop3login: Connection, ip=[::ffff:202.68.89.154]
Sep 10 09:55:56 web-svr01 postfix/qmgr[16428]: warning: connect to transport smtp: Connection refused

Seems I don't have auth running. Is there a way to get that running with ispconfig?

Sep 10 10:28:55 web-svr01 postfix/smtpd[17450]: connect from localhost[127.0.0.1]
Sep 10 10:28:55 web-svr01 postfix/smtpd[17450]: warning: SASL authentication failure: cannot connect to saslauthd server: No such file or directory
Sep 10 10:28:55 web-svr01 postfix/smtpd[17450]: warning: localhost[127.0.0.1]: SASL LOGIN authentication failed: generic failure
Sep 10 10:28:55 web-svr01 postfix/smtpd[17450]: lost connection after AUTH from localhost[127.0.0.1]
Sep 10 10:28:55 web-svr01 postfix/smtpd[17450]: disconnect from localhost[127.0.0.1]

I am really banging my head here. I have followed the Debian perfect setup for ispconfig (etch).

So I need to work out

1) smtp auth only
2) get mail sent out

Can anyone provide me with some help?

infused
10th September 2007, 02:30
Further investigation I can see auth is installed... just does not seem to be working...

web-svr01:/var/spool/postfix/var/run/saslauthd# ps -x | grep saslauthd
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
2680 ? Ss 0:00 /usr/sbin/saslauthd -a pam -c -m /var/spool/postfix/var/run/saslauthd -r -n 5
2681 ? S 0:00 /usr/sbin/saslauthd -a pam -c -m /var/spool/postfix/var/run/saslauthd -r -n 5
2682 ? S 0:00 /usr/sbin/saslauthd -a pam -c -m /var/spool/postfix/var/run/saslauthd -r -n 5
2683 ? S 0:00 /usr/sbin/saslauthd -a pam -c -m /var/spool/postfix/var/run/saslauthd -r -n 5
2684 ? S 0:00 /usr/sbin/saslauthd -a pam -c -m /var/spool/postfix/var/run/saslauthd -r -n 5
3121 pts/0 R+ 0:00 grep saslauthd

However, when I login to the mail server I don't get a auth reply.

220 i2.net.nz ESMTP Postfix (Debian/GNU)
helo localhost
250 domain.net.nz

and more for /var/log/mail.log

Sep 10 11:31:12 web-svr01 postfix/smtpd[3226]: connect from localhost[127.0.0.1]
Sep 10 11:31:12 web-svr01 postfix/smtpd[3226]: warning: SASL authentication failure: cannot connect to saslauthd server: No such file or directory
Sep 10 11:31:12 web-svr01 postfix/smtpd[3226]: warning: localhost[127.0.0.1]: SASL LOGIN authentication failed: generic failure
Sep 10 11:31:12 web-svr01 postfix/smtpd[3226]: lost connection after AUTH from localhost[127.0.0.1]
Sep 10 11:31:12 web-svr01 postfix/smtpd[3226]: disconnect from localhost[127.0.0.1]

till
10th September 2007, 09:31
If you configured ASSP on your external IP, ASSP will have to handle the smtp auth and not postfix. I'amnot sure if ASSP has smtp-auth implemented as its basically just a smtp proxy and not a full mail server.

infused
10th September 2007, 10:24
If assp is in test mode, everything works fine :S seems like something is blocking the auth command.