LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-21-2011, 02:04 AM   #1
andycol
Member
 
Registered: Jul 2009
Location: South Africa
Posts: 38

Rep: Reputation: 16
mail transport unavailable -- PLease help


So i have decided to setup Virtual hosting but i can not relay mail through

This is the error i get.

Jun 21 09:00:51 Cyberia postfix/qmgr[11507]: warning: connect to transport amavis: Connection refused
Jun 21 09:00:51 Cyberia postfix/qmgr[11507]: 5F8147CE7: from=<root@moodle.localdomain>, size=1823, nrcpt=1 (queue active)
/0/0.01, dsn=4.3.0, status=deferred (mail transport unavailable)
Jun 21 09:00:51 Cyberia postfix/error[11511]: 5BB797CE3: to=<andrew@bitco.co.za>, relay=none, delay=41804, delays=41804/0/0/0.01, dsn=4.3.0, status=deferred (mail transport unavailable)


also when i send to the server i get this

Jun 20 21:40:13 Cyberia postfix/qmgr[10440]: 6B9827CEF: from=<andrew.colin@iafrica.com>, size=605, nrcpt=1 (queue active)
Jun 20 21:40:16 Cyberia postfix/pickup[10439]: 793197CF1: uid=5001 from=<andrew.colin@iafrica.com>
Jun 20 21:40:16 Cyberia postfix/pipe[10451]: 6B9827CEF: to=<andrew@nutxase.co.za>, relay=spamassassin, delay=3.1, delays=0.06/0/0/3, dsn=2.0.0, status=sent (delivered via spamassassin service)
Jun 20 21:40:16 Cyberia postfix/qmgr[10440]: 793197CF1: from=<andrew.colin@iafrica.com>, size=716, nrcpt=1 (queue active)
Jun 20 21:40:16 Cyberia postfix/local[10455]: 793197CF1: to=<andrew@nutxase.co.za>, relay=local, delay=0.03, delays=0.01/0/0/0.01, dsn=5.1.1, status=bounced (unknown user: "andrew")
 
Old 06-21-2011, 04:56 AM   #2
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
Quote:
Jun 21 09:00:51 Cyberia postfix/qmgr[11507]: warning: connect to transport amavis: Connection refused
Jun 21 09:00:51 Cyberia postfix/qmgr[11507]: 5F8147CE7: from=<root@moodle.localdomain>, size=1823, nrcpt=1 (queue active)
/0/0.01, dsn=4.3.0, status=deferred (mail transport unavailable)
Jun 21 09:00:51 Cyberia postfix/error[11511]: 5BB797CE3: to=<andrew@bitco.co.za>, relay=none, delay=41804, delays=41804/0/0/0.01, dsn=4.3.0, status=deferred (mail transport unavailable)
The error message(s) indicate that Postfix is attempting to filter the mail through Amavis, which is a fairly normal practice. One of the problems appears to be that Amavis is either not running, or is not bound to the correct ports as configured through your Postfix master.cf, main.cf and Amavis configuration.

The other problem I see is that it looks like you have a problem with the domains being handled and what Postfix thinks is the host name and what domains it thinks it is supposed to receive for. You have: to=<andrew@bitco.co.za> and to=<andrew@nutxase.co.za>. Postfix will attempt to deliver for those domains specified in mydestinations. All others it will attempt to do a domain lookup and send to that domain. Depending on how you have the sender restrictions set, e.g. permit my_networks, permit SASL authenticated, etc, and where the message is originating it may try to send or it may bounce on authentication. In this case, <andrew@nutxase.co.za>, bounced, which means that Postfix thinks that it is supposed to deliver for nutxase.co.za, but there is no andrew user.

In order to use virtual users, you will need to have the proper SQL configuration files and reference them in your main.cf. These will contain the lookup strings to verify the user for Postfix. The SQL tables must be in the proper format to match this and so forth. Typically I use the tool Postfixadmin (php based web app) to handle creating the user accounts as it puts them in the correct format for me.

I would recommend that you turn on debugging, including password debugging in Postfix and your POP/IMAP program, which is what Postfix will use to handle SASL authentication. Your log files should then give you a lot more information regarding the problem. Be sure to restart your services, check to see if the applications are running and listening on the proper ports and then test. You might even want to start with a telnet test for SMTP rather than trying to connect through a mail client to eliminate some variables.
 
Old 06-21-2011, 06:34 AM   #3
andycol
Member
 
Registered: Jul 2009
Location: South Africa
Posts: 38

Original Poster
Rep: Reputation: 16
i managed to fix it thanks

now i get this error

Jun 21 13:31:21 tornado dovecot: imap-login: Aborted login (2 authentication attempts): user=<andrew@nutxase.co.za>, method=PLAIN, rip=x.x.x.x, lip=x.x.x.x.
Jun 21 13:31:21 tornado dovecot: imap-login: Aborted login (0 authentication attempts)

and thunderbird etc wont accept my password?
any ideas?
 
Old 06-21-2011, 07:37 AM   #4
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
This sounds like a mis-match between the user + password in your SQL database vs what is being transmitted and received by Dovecot. Sometimes this can be fixed with an adjustment to the Dovecot SQL configuration. To find out what is happening, there are three lines in dovecot that you can enable to show you what it is doing. This should show you what the problem is and hopefully, in turn, how to solve it.

Code:
auth_verbose = yes
auth_debug = yes
auth_debug_passwords = yes
 
Old 06-21-2011, 07:49 AM   #5
andycol
Member
 
Registered: Jul 2009
Location: South Africa
Posts: 38

Original Poster
Rep: Reputation: 16
when i add those i get Jun 21 14:49:14 tornado dovecot: child 5887 (auth) returned error 89
Jun 21 14:49:14 tornado dovecot: Auth process died too early - shutting down

here is my dovecot-mysql.conf

driver = mysql
connect = host=localhost dbname=postfix user=postfix password=XXXX
default_pass_scheme = PLAIN
password_query = SELECT password FROM mailbox WHERE username = '%u'
user_query = SELECT maildir, 89 AS uid, 89 AS gid FROM mailbox WHERE username = '%u'

Last edited by andycol; 06-21-2011 at 07:53 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail transport not available LuggerHouse Linux - Server 0 03-24-2011 08:05 AM
[SOLVED] "mail transport unavailable" Error Darkshine_DF Linux - Server 7 09-14-2009 07:50 AM
postfix mail transport problem ayush1440 Linux - Server 3 03-17-2008 05:45 AM
E-mail Transport Hangs matrim Fedora 1 11-17-2005 05:34 PM
Exim Mail Transport Agent Fernando Linux - General 0 02-05-2002 02:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration