PDA

View Full Version : Trouble sending mail


EvdM
18th February 2006, 15:37
I have just completed my first ISPConfig installation (after a 'perfect Debian setup'). Most things seem to work fine, except I had trouble logging into the webmail first, but after switching to Courier imap (as suggested on this forum) that worked too.

No the only issue is that I cannot seem to send mail for external delivery. If I try so send to some gmail receipient, I get logs showing:

Feb 18 12:32:15 montblanc postfix/smtp[10637]: connect to gmail.com[216.239.57.107]: Connection timed out (port 25)
Feb 18 12:32:45 montblanc postfix/smtp[10637]: connect to gmail.com[64.233.161.107]: Connection timed out (port 25)
Feb 18 12:33:15 montblanc postfix/smtp[10637]: connect to gmail.com[64.233.171.107]: Connection timed out (port 25)
Feb 18 12:33:15 montblanc postfix/smtp[10637]: 07388AAAFE: to=<erik.van.der.meulen@gmail.com>, relay=none, delay=1512, status=deferred (connect to gmail.com[64.233.171.107]: Connection timed out)

I have tried some of the suggestions testing for fire wall issues, but 'telnet mx2.hotmail.com 25' fron the system gives:

Trying 65.54.244.168...
Connected to bay0-oim-f.bay0.hotmail.com.
Escape character is '^]'.
220 bay0-mc6-f10.bay0.hotmail.com Sending unsolicited commercial or bulk e-mail to Microsoft's computer network is prohibited. Other restrictions are found at http://privacy.msn.com/Anti-spam/. Violations will result in use of equipment located in California and other states. Sat, 18 Feb 2006 05:33:44 -0800

That seems okay to me to. Further 'netstat -tap' gives:

Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 localhost.localdo:mysql *:* LISTEN 2079/mysqld
tcp 0 0 *:81 *:* LISTEN 2267/ispconfig_http
tcp 0 0 *:ftp *:* LISTEN 2436/proftpd: (acce
tcp 0 0 montblanc.avonde:domain *:* LISTEN 2423/named
tcp 0 0 localhost.locald:domain *:* LISTEN 2423/named
tcp 0 0 *:smtp *:* LISTEN 10632/master
tcp 0 0 localhost.localdoma:953 *:* LISTEN 2423/named
tcp6 0 0 *:imaps *:* LISTEN 1996/couriertcpd
tcp6 0 0 *:pop3s *:* LISTEN 2017/couriertcpd
tcp6 0 0 *:pop3 *:* LISTEN 2004/couriertcpd
tcp6 0 0 *:imap2 *:* LISTEN 1983/couriertcpd
tcp6 0 0 *:www *:* LISTEN 2297/apache2
tcp6 0 0 *:ssh *:* LISTEN 2232/sshd
tcp6 0 0 *:smtp *:* LISTEN 10632/master
tcp6 0 0 ip6-localhost:953 *:* LISTEN 2423/named
tcp6 0 0 *:https *:* LISTEN 2297/apache2
tcp6 0 888 ::ffff:192.168.1.2:ssh kcnl011nb.lan:4071 ESTABLISHED2543/0
tcp6 0 0 ::ffff:192.168.1.:imaps kcnl011nb.lan:4233 ESTABLISHED4226/couriertls
tcp6 0 0 ::ffff:192.168.1.2:ssh kcnl011nb.lan:4311 ESTABLISHED6482/1

And that leaves me pretty much clue-less...

Any suggestions much appreciated, thanks a lot!

Erik

till
18th February 2006, 18:15
Is your server hosted on your DSL line? Many providers block email connections from IP addresses that are from Dialup accounts, this includes modem and dsl accounts.

EvdM
18th February 2006, 20:38
Is your server hosted on your DSL line? Many providers block email connections from IP addresses that are from Dialup accounts, this includes modem and dsl accounts.

Thanks for the suggestion. My server is hosted on a DSL line. Is there some way to test if this is the problem here? And if so, are there ways around this issue? Would I need to find an external smtp for outgoing mail?

Thanks again!

falko
19th February 2006, 02:06
Thanks for the suggestion. My server is hosted on a DSL line. Is there some way to test if this is the problem here?
Can you send to other (non-hotmail) accounts?
You could contact Hotmail and ask if the block dynamic IP addresses.

And if so, are there ways around this issue? Would I need to find an external smtp for outgoing mail?

Thanks again!
You could use an SMTP server for relaying. You do it like this:
http://www.howtoforge.com/forums/showpost.php?p=1594&postcount=18

EvdM
19th February 2006, 09:25
Can you send to other (non-hotmail) accounts?
You could contact Hotmail and ask if the block dynamic IP addresses.


Thanks, this made me think; I do have a fixed IP. I have a router which does some NAT functions, so my server resides effecitvely on 192.168.1.X.

Further, I have not been able to send to different accounts either.
I include the bounce message which was generated on such occasion:
(replaced sender domain with XXX ande receiver with YYY)


The Postfix program

<e.van.der.meulen@YYY.com>: host YYY.com[213.193.221.165] said: 550 Requested action not taken: mailbox unavailable or not local (in reply to RCPT TO command)

Reporting-MTA: dns; montblanc.avondel.nl
X-Postfix-Queue-ID: 68BF9AAAFF
X-Postfix-Sender: rfc822; web3_erik@XXX.nl
Arrival-Date: Sun, 19 Feb 2006 07:14:51 +0100 (CET)

Final-Recipient: rfc822; e.van.der.meulen@YYY.com
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; host YYY.com[213.193.221.165] said: 550 Requested action not taken: mailbox unavailable or not local (in reply to RCPT TO command)

Subject: Test Traces
From: "Web3_erik" <web3_erik@XXX.nl>
Date: Sun, 19 Feb 2006 7:14:51 +0100
To: e.van.der.meulen@YYY.com
Received: from UebiMiau (localhost.localdomain [127.0.0.1]) by montblanc.avondel.nl (Postfix) with SMTP id 68BF9AAAFF for <e.van.der.meulen@YYY.com>; Sun, 19 Feb 2006 07:14:51 +0100 (CET)
Received: from client 192.168.1.153 for UebiMiau2.7 (webmail client); Sun, 19 Feb 2006 7:14:51 +0100
Reply-To: "Web3_erik" <web3_erik@XXX.nl>
X-Priority: 3
X-Mailer: UebiMiau 2.7.2
X-Original-IP: 192.168.1.153
Content-Transfer-Encoding: 8bit
X-MSMail-Priority: Medium
Importance: Medium
Content-Type: text/html; charset="iso-8859-1";
MIME-Version: 1.0
Message-ID: <20060219061451.68BF9AAAFF@montblanc.avondel.nl>

Hope this helps a little.

Thanks all!

falko
19th February 2006, 13:18
The error message is saying that the mailbox does not exist on the receiving server.
Is e.van.der.meulen@YYY.com an email address on a remote server, or is it on the same server that you use for sending?