New install - unable to connect SMTP using OE / Thunderbird

6 posts / 0 new
Last post
#1 Fri, 08/07/2009 - 09:29
pauldavies83

New install - unable to connect SMTP using OE / Thunderbird

I have installed Virtualmin on a clean Ubutnu 8.04 installation, using the GPL install script.

Created 1 virtual server, which has 1 user (default access to ftp etc)

I am able to fetch mail using IMAP/POP fine using the user credentials, but when trying to connect to send mail using OE the client times-out after 60 seconds (prompts to continue waiting or stop). Happens when trying to use SSL or non-SSL.

mail.log on the server shows the following...

2 vm3014 postfix/smtpd[24042]: fatal: open database /etc/aliases.db: No such file or directory Aug 7 15:19:03 vm3014 postfix/master[11919]: warning: process /usr/lib/postfix/smtpd pid 24042 exit status 1 Aug 7 15:19:03 vm3014 postfix/master[11919]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling Aug 7 15:20:06 vm3014 postfix/smtpd[24093]: fatal: open database /etc/aliases.db: No such file or directory Aug 7 15:20:07 vm3014 postfix/master[11919]: warning: process /usr/lib/postfix/smtpd pid 24093 exit status 1 Aug 7 15:20:07 vm3014 postfix/master[11919]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling

Anyone offer any sugestions?

Fri, 08/07/2009 - 09:34
andreychek

Hrm, it looks like you don't have an aliases database.

Try running the command:

newaliases

And then restart Postfix:

/etc/init.d/postfix restart

And see if that runs without any errors now.

-Eric

Fri, 08/07/2009 - 10:05 (Reply to #2)
pauldavies83

Am able to talk to the server now, but am getting the following logged...

Aug 7 16:04:28 vm3014 postfix/smtpd[27824]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled Aug 7 16:04:28 vm3014 postfix/smtpd[27824]: fatal: parameter "smtpd_recipient_restrictions": specify at least one working instance of: check_relay_domains, reject_unauth_destination, reject, defer or defer_if_permit Aug 7 16:04:29 vm3014 postfix/master[24569]: warning: process /usr/lib/postfix/smtpd pid 27824 exit status 1 Aug 7 16:04:29 vm3014 postfix/master[24569]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling

Fri, 08/07/2009 - 11:18
andreychek

It sounds like something may be awry with your smtpd_recipient_restrictions in the main.cf file.

Try editing /etc/postfix/main.cf, and setting smtpd_recipient_restrictions to this:

smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination

And then restart postfix.

-Eric

Fri, 08/07/2009 - 13:10 (Reply to #4)
pauldavies83

Thanks for your help so for Eric

Am getting through to the server now, but the user is unable to authenticate. The username and password is definitely right (works for IMAP/POP3), and I've tried changing it. Also tried restarting postfix and saslauthd - no luck

mail.log.....

Aug 7 19:06:41 vm3014 postfix/smtpd[1725]: connect from 5ad400f4.bb.xx.xx[90.xx.xx.xx] Aug 7 19:06:42 vm3014 postfix/smtpd[1725]: warning: SASL authentication failure: cannot connect to saslauthd server: Permission denied Aug 7 19:06:42 vm3014 postfix/smtpd[1725]: warning: 5ad400f4.bb.xx.xx[90.xx.xx.xx]: SASL LOGIN authentication failed: generic failure Aug 7 19:06:42 vm3014 postfix/smtpd[1725]: lost connection after AUTH from 5ad400f4.bb.xx.xx[90.xx.xx.xx] Aug 7 19:06:42 vm3014 postfix/smtpd[1725]: disconnect from 5ad400f4.bb.xx[90.xx.xx.xx]

Is it usually this difficult? :-) I was hoping the install script would take care of everything (obviously I'm a bit of a newbie to virtual servers & mail!)

Fri, 08/07/2009 - 14:00 (Reply to #5)
andreychek

Sounds like an saslauth permissions issue.

Try running this:

usermod -a -G sasl postfix

Followed by restarting Saslauthd:

/etc/init.d/saslauthd restart

Topic locked