Re-Installed TWICE!!! email STILL doesent work!

As above i have followed instructions to the letter and everything works apart from emails

running install.sh (virtualmin pro)

what am i doing wrong???

Is there anyone able to help me on this?

Howdy,

Why would you do the same thing twice, expecting different results? :wink:

Let’s get more specific about what doesn’t work with email. Sending? Receiving? Picking up via POP/IMAP? All of these are different services, and will have different possible solutions.

Regardless, the evidence of what’s going wrong will be in the logs, specifically, /var/log/maillog or /var/log/mail.log

Post the entries you see when attempting to do whatever action is failing, as well as any errors your mail client produces, and we can probably point you in the direction of a solution.

Also a few minutes before sending gia outlook i got this in the /var/log/auth.log

[code:1]
Feb 7 09:13:56 aeisecurity postfix/smtpd[3709]: sql_select option missing
Feb 7 09:13:56 aeisecurity postfix/smtpd[3709]: auxpropfunc error no mechanism available
Feb 7 09:13:56 aeisecurity postfix/smtpd[3709]: _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: sql
[/code:1]

Saying all that - i dont seem to be recieving mail either any more :frowning:

with this in /var/log/mail.log

[code:1]
Feb 7 10:01:20 aeisecurity postfix/smtpd[4536]: E6E0B23573: client=unknown[75.126.163.67]
Feb 7 10:01:21 aeisecurity postfix/cleanup[5341]: E6E0B23573: message-id=<20080207100120.E6E0B23573@aeisecurity.com>
Feb 7 10:01:21 aeisecurity postfix/qmgr[8797]: E6E0B23573: from=<account@an-external-domain.tld>, size=3766, nrcpt=1 (queue active)
[/code:1]

ignore that last post -_- its just a little slow

to clarify, sending mail is the only problem

the sent mail from usermin is going into the mail queue:

995922355C Thu Feb 7 09:09:17 test@localdomain.com rich@external-domain.com 603 bytes Host or domain name not found. Name service error for name=external-domain.com type=MX: Host not found, try again

I have done some detective work on the sending mail in usermin and i restored the default firewall settings from

webmin > networking > linux firewall > reset firewall

to

Block all except ports used for virtual hosting, on interface: eth0

but im still having problems authenticating users via outlook if anyone can help i would appreciate this alot - thanks

P.S. i cannot edit my own posts on the forum hence all the replies (sorry).

This issue still has not been resolved.

Feb 7 09:19:53 aeisecurity postfix/smtpd[3194]: warning: SASL authentication failure: cannot connect to saslauthd server: Permission denied Feb 7 09:19:53 aeisecurity postfix/smtpd[3194]: warning: unknown[91.84.217.133]: SASL LOGIN authentication failed Feb 7 09:19:53 aeisecurity postfix/smtpd[3194]: lost connection after AUTH from unknown[91.84.217.133] Feb 7 09:19:53 aeisecurity postfix/smtpd[3194]: disconnect from unknown[91.84.217.133]

So this bit is the problem. Not sure why this would be happening…but it’s the source of the troubl, I’m almost certain.

Seems like something is broken in the interaction between Postfix and saslauthd, but I’m having a hard time guessing what (even looking over your configuration). I might need to drop in on your box for a look. You can email me the details at joe@virtualmin.com.

BTW-Forums are a poor substitute for the issue tracker–for long-running, complicated issues like this, the issue tracker is the way to go. Forums are for chatting. And with the issue tracker you won’t have to remind me that the “issue is still open” as I’ll see it staring at me every time I look at the outstanding issues page. :wink:

Hello Joe

Thank you for your reply, I have send you an email with the details you require.

Thanks

Richard

Hello Joe

please bear in mind im no linux expert - hence me using this software for the company.

Also apologies for the rant yesterday but i have people screaming at me to get this finnished yesterday - and the problems seem to be above and beyond me.

The server is a fasthosts DS450 (Ubuntu 6.06)

The reason for 2 tries was because the first time matrix control panel was still installed and i believed that was causing the problems - it turns out this was not the case. As usual fasthosts were as helpfull as a chocolate kettle.

the installed seemed to go just fine intil i tried to send emails.

but to get this far i had to again set the following options to get dovecot running;

webmin > servers > dovecot > mail files > Mail file location [Inbox and folders in ~/Maildir]
webmin > servers > dovecot > mail files > UIDL format

to

Courier 2

and to get saslauthd to start the following changes to the startup;

webmin > system > Bootup and Shutdown > saslauthd > Action Script

from this

NAME=saslauthd
DAEMON="/usr/sbin/${NAME}"
DESC="SASL Authentication Daemon"
DEFAULTS=/etc/default/saslauthd
PWDIR=/var/run/saslauthd
PIDFILE="/var/run/${NAME}/saslauthd.pid"

to this

NAME=saslauthd
DAEMON="/usr/sbin/${NAME}"
DESC="SASL Authentication Daemon"
DEFAULTS=/etc/default/saslauthd
PWDIR=/var/spool/postfix/var/run/saslauthd
PIDFILE="/var/spool/postfix/var/run/${NAME}/saslauthd.pid"


on a side note FTP server proftpd config file location setting in

webmin > servers > ProFTPD Server > Module Config > Configuration category: system configuration > Path to ProFTPD config file

from this

/etc/proftpd/proftpd.conf

to this

/etc/proftpd.conf

It makes me wonder what else hasnt been set correctly.


The only thing that seems to work on the email side of things are recieving email both vie outlook and via usermin.

usermin doesent seem to be sending email and neither does usermin

here are the relevant config files you may need:

/etc/postfix/main.cf

[code:1]queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
mail_owner = postfix
mydestination = $myhostname, localhost.$mydomain, ubuntu
unknown_local_recipient_reject_code = 450
mynetworks_style = host
alias_maps = hash:/etc/aliases
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
ddd $daemon_directory/$process_name $process_id & sleep 5

sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.0.18/samples
readme_directory = /usr/share/doc/postfix-2.0.18/README_FILES
alias_database = hash:/etc/aliases

Following entries REQUIRED by Matrix control panel

virtual_maps = hash:/etc/postfix/virtual
transport_maps = hash:/etc/postfix/transport
virtual_mailbox_domains = $transport_maps
local_destination_concurrency_limit=1
maildrop_destination_concurrency_limit=1
maildrop_destination_recipient_limit=1
relay_domains=$mydestination $transport_maps
mailbox_command = /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME
home_mailbox = Maildir/
inet_interfaces = all
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination
smtpd_sasl_auth_enable = yes
[/code:1]

/etc/postfix/sasl/smtp.conf

[code:1]pwcheck_method: saslauthd
mech_list: plain login[/code:1]

/etc/default/saslauthd

[code:1]
START=yes
MECHANISMS="pam"
PARAMS="-m /var/spool/postfix/var/run/saslauthd -r"[/code:1]

When sending mail via usermin i get this in /var/log/mail.log

[code:1]Feb 7 09:09:17 aeisecurity postfix/pickup[973]: 995922355C: uid=1019 from=<test@domain.com>
Feb 7 09:09:17 aeisecurity postfix/cleanup[3406]: 995922355C: message-id=<1202375357.3446@domain.com>
Feb 7 09:09:17 aeisecurity postfix/qmgr[8797]: 995922355C: from=<test@domain.com>, size=603, nrcpt=1 (queue active)[/code:1]

but the message does not get through.

When logging in via outlook again mail is recieved ok, but refuses to send mail it requests the username and password, which i know are correct and hangs.

here is the mail logs

[code:1]Feb 7 09:19:53 aeisecurity postfix/smtpd[3194]: connect from unknown[91.84.217.133]
Feb 7 09:19:53 aeisecurity postfix/smtpd[3194]: warning: SASL authentication failure: cannot connect to saslauthd server: Permission denied
Feb 7 09:19:53 aeisecurity postfix/smtpd[3194]: warning: unknown[91.84.217.133]: SASL LOGIN authentication failed
Feb 7 09:19:53 aeisecurity postfix/smtpd[3194]: lost connection after AUTH from unknown[91.84.217.133]
Feb 7 09:19:53 aeisecurity postfix/smtpd[3194]: disconnect from unknown[91.84.217.133][/code:1]

Hello Joe

please bear in mind im no linux expert - hence me using this software for the company.

Also apologies for the rant yesterday but i have people screaming at me to get this finnished yesterday - and the problems seem to be above and beyond me.

The server is a fasthosts DS450 (Ubuntu 6.06)

The reason for 2 tries was because the first time matrix control panel was still installed and i believed that was causing the problems - it turns out this was not the case. As usual fasthosts were as helpfull as a chocolate kettle.

the installed seemed to go just fine intil i tried to send emails.

but to get this far i had to again set the following options to get dovecot running;

webmin > servers > dovecot > mail files > Mail file location [Inbox and folders in ~/Maildir]
webmin > servers > dovecot > mail files > UIDL format

to

Courier 2

and to get saslauthd to start the following changes to the startup;

webmin > system > Bootup and Shutdown > saslauthd > Action Script

from this

NAME=saslauthd
DAEMON="/usr/sbin/${NAME}"
DESC="SASL Authentication Daemon"
DEFAULTS=/etc/default/saslauthd
PWDIR=/var/run/saslauthd
PIDFILE="/var/run/${NAME}/saslauthd.pid"

to this

NAME=saslauthd
DAEMON="/usr/sbin/${NAME}"
DESC="SASL Authentication Daemon"
DEFAULTS=/etc/default/saslauthd
PWDIR=/var/spool/postfix/var/run/saslauthd
PIDFILE="/var/spool/postfix/var/run/${NAME}/saslauthd.pid"


on a side note FTP server proftpd config file location setting in

webmin > servers > ProFTPD Server > Module Config > Configuration category: system configuration > Path to ProFTPD config file

from this

/etc/proftpd/proftpd.conf

to this

/etc/proftpd.conf

It makes me wonder what else hasnt been set correctly.


The only thing that seems to work on the email side of things are recieving email both vie outlook and via usermin.

usermin doesent seem to be sending email and neither does usermin

here are the relevant config files you may need:

/etc/postfix/main.cf

[code:1]queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
mail_owner = postfix
mydestination = $myhostname, localhost.$mydomain, ubuntu
unknown_local_recipient_reject_code = 450
mynetworks_style = host
alias_maps = hash:/etc/aliases
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
ddd $daemon_directory/$process_name $process_id & sleep 5

sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.0.18/samples
readme_directory = /usr/share/doc/postfix-2.0.18/README_FILES
alias_database = hash:/etc/aliases

Following entries REQUIRED by Matrix control panel

virtual_maps = hash:/etc/postfix/virtual
transport_maps = hash:/etc/postfix/transport
virtual_mailbox_domains = $transport_maps
local_destination_concurrency_limit=1
maildrop_destination_concurrency_limit=1
maildrop_destination_recipient_limit=1
relay_domains=$mydestination $transport_maps
mailbox_command = /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME
home_mailbox = Maildir/
inet_interfaces = all
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination
smtpd_sasl_auth_enable = yes
[/code:1]

/etc/postfix/sasl/smtp.conf

[code:1]pwcheck_method: saslauthd
mech_list: plain login[/code:1]

/etc/default/saslauthd

[code:1]
START=yes
MECHANISMS="pam"
PARAMS="-m /var/spool/postfix/var/run/saslauthd -r"[/code:1]

When sending mail via usermin i get this in /var/log/mail.log

[code:1]Feb 7 09:09:17 aeisecurity postfix/pickup[973]: 995922355C: uid=1019 from=<test@domain.com>
Feb 7 09:09:17 aeisecurity postfix/cleanup[3406]: 995922355C: message-id=<1202375357.3446@domain.com>
Feb 7 09:09:17 aeisecurity postfix/qmgr[8797]: 995922355C: from=<test@domain.com>, size=603, nrcpt=1 (queue active)[/code:1]

but the message does not get through.

When logging in via outlook again mail is recieved ok, but refuses to send mail it requests the username and password, which i know are correct and hangs.

here is the mail logs

[code:1]Feb 7 09:19:53 aeisecurity postfix/smtpd[3194]: connect from unknown[91.84.217.133]
Feb 7 09:19:53 aeisecurity postfix/smtpd[3194]: warning: SASL authentication failure: cannot connect to saslauthd server: Permission denied
Feb 7 09:19:53 aeisecurity postfix/smtpd[3194]: warning: unknown[91.84.217.133]: SASL LOGIN authentication failed
Feb 7 09:19:53 aeisecurity postfix/smtpd[3194]: lost connection after AUTH from unknown[91.84.217.133]
Feb 7 09:19:53 aeisecurity postfix/smtpd[3194]: disconnect from unknown[91.84.217.133][/code:1]

Hello Joe

please bear in mind im no linux expert - hence me using this software for the company.

Also apologies for the rant yesterday but i have people screaming at me to get this finnished yesterday - and the problems seem to be above and beyond me.

The server is a fasthosts DS450 (Ubuntu 6.06)

The reason for 2 tries was because the first time matrix control panel was still installed and i believed that was causing the problems - it turns out this was not the case. As usual fasthosts were as helpfull as a chocolate kettle.

the installed seemed to go just fine intil i tried to send emails.

but to get this far i had to again set the following options to get dovecot running;

webmin > servers > dovecot > mail files > Mail file location [Inbox and folders in ~/Maildir]
webmin > servers > dovecot > mail files > UIDL format

to

Courier 2

and to get saslauthd to start the following changes to the startup;

webmin > system > Bootup and Shutdown > saslauthd > Action Script

from this

NAME=saslauthd
DAEMON="/usr/sbin/${NAME}"
DESC="SASL Authentication Daemon"
DEFAULTS=/etc/default/saslauthd
PWDIR=/var/run/saslauthd
PIDFILE="/var/run/${NAME}/saslauthd.pid"

to this

NAME=saslauthd
DAEMON="/usr/sbin/${NAME}"
DESC="SASL Authentication Daemon"
DEFAULTS=/etc/default/saslauthd
PWDIR=/var/spool/postfix/var/run/saslauthd
PIDFILE="/var/spool/postfix/var/run/${NAME}/saslauthd.pid"


on a side note FTP server proftpd config file location setting in

webmin > servers > ProFTPD Server > Module Config > Configuration category: system configuration > Path to ProFTPD config file

from this

/etc/proftpd/proftpd.conf

to this

/etc/proftpd.conf

It makes me wonder what else hasnt been set correctly.


The only thing that seems to work on the email side of things are recieving email both vie outlook and via usermin.

usermin doesent seem to be sending email and neither does usermin

here are the relevant config files you may need:

/etc/postfix/main.cf

[code:1]queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
mail_owner = postfix
mydestination = $myhostname, localhost.$mydomain, ubuntu
unknown_local_recipient_reject_code = 450
mynetworks_style = host
alias_maps = hash:/etc/aliases
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
ddd $daemon_directory/$process_name $process_id & sleep 5

sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.0.18/samples
readme_directory = /usr/share/doc/postfix-2.0.18/README_FILES
alias_database = hash:/etc/aliases

Following entries REQUIRED by Matrix control panel

virtual_maps = hash:/etc/postfix/virtual
transport_maps = hash:/etc/postfix/transport
virtual_mailbox_domains = $transport_maps
local_destination_concurrency_limit=1
maildrop_destination_concurrency_limit=1
maildrop_destination_recipient_limit=1
relay_domains=$mydestination $transport_maps
mailbox_command = /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME
home_mailbox = Maildir/
inet_interfaces = all
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination
smtpd_sasl_auth_enable = yes
[/code:1]

/etc/postfix/sasl/smtp.conf

[code:1]pwcheck_method: saslauthd
mech_list: plain login[/code:1]

/etc/default/saslauthd

[code:1]
START=yes
MECHANISMS="pam"
PARAMS="-m /var/spool/postfix/var/run/saslauthd -r"[/code:1]

When sending mail via usermin i get this in /var/log/mail.log

[code:1]Feb 7 09:09:17 aeisecurity postfix/pickup[973]: 995922355C: uid=1019 from=<test@domain.com>
Feb 7 09:09:17 aeisecurity postfix/cleanup[3406]: 995922355C: message-id=<1202375357.3446@domain.com>
Feb 7 09:09:17 aeisecurity postfix/qmgr[8797]: 995922355C: from=<test@domain.com>, size=603, nrcpt=1 (queue active)[/code:1]

but the message does not get through.

When logging in via outlook again mail is recieved ok, but refuses to send mail it requests the username and password, which i know are correct and hangs.

here is the mail logs

[code:1]Feb 7 09:19:53 aeisecurity postfix/smtpd[3194]: connect from unknown[91.84.217.133]
Feb 7 09:19:53 aeisecurity postfix/smtpd[3194]: warning: SASL authentication failure: cannot connect to saslauthd server: Permission denied
Feb 7 09:19:53 aeisecurity postfix/smtpd[3194]: warning: unknown[91.84.217.133]: SASL LOGIN authentication failed
Feb 7 09:19:53 aeisecurity postfix/smtpd[3194]: lost connection after AUTH from unknown[91.84.217.133]
Feb 7 09:19:53 aeisecurity postfix/smtpd[3194]: disconnect from unknown[91.84.217.133][/code:1]