|
Home > Archive > alt.os.linux > December 2004 > problem sending mail from one server to another
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
problem sending mail from one server to another
|
|
| some@one.com 2002-10-17, 6:24 pm |
| I seem to not be able to get mail.bvsmedia.com to send mail to
mail.openskyco.com. I'm using exim as the MTA on both servers.
It will send mail to any other server without any problem. They are
both on the same subnet. I'm at a loss as to what the problem might
be.
Here is a copy of /var/log/exim/mainlog on mail.bvsmedia.com related
to the particular problem:
2002-10-17 15:35:01 182Cft-0002jt-00 <= jason@bvsmedia.com
H=(Raistlin) [216.111.149.119] P=esmtp S=2418 id=00ec01c2762b
$e503d4a0$77956fd8@Raistlin
2002-10-17 15:35:01 182Cft-0002jt-00 ** jshultz@openskyco.com
R=lookuphost T=remote_smtp: retry time not reached for any
host after a long failure period
2002-10-17 15:35:01 182Cft-0002jz-00 <= <> R=182Cft-0002jt-00 U=mail
P=local S=3251
2002-10-17 15:35:01 182Cft-0002jt-00 Error message sent to
jason@bvsmedia.com
2002-10-17 15:35:01 182Cft-0002jt-00 Completed
If anyone has any suggestions, please let me know. I'll try anything.

| |
| David Efflandt 2002-10-19, 3:24 pm |
| On Thu, 17 Oct 2002 15:28:53 -0700, some@one.com <some@one.com> wrote:
> I seem to not be able to get mail.bvsmedia.com to send mail to
> mail.openskyco.com. I'm using exim as the MTA on both servers.
>
> It will send mail to any other server without any problem. They are
> both on the same subnet. I'm at a loss as to what the problem might
> be.
>
> Here is a copy of /var/log/exim/mainlog on mail.bvsmedia.com related
> to the particular problem:
>
> 2002-10-17 15:35:01 182Cft-0002jt-00 <= jason@bvsmedia.com
> H=(Raistlin) [216.111.149.119] P=esmtp S=2418 id=00ec01c2762b
> $e503d4a0$77956fd8@Raistlin
> 2002-10-17 15:35:01 182Cft-0002jt-00 ** jshultz@openskyco.com
> R=lookuphost T=remote_smtp: retry time not reached for any
> host after a long failure period
> 2002-10-17 15:35:01 182Cft-0002jz-00 <= <> R=182Cft-0002jt-00 U=mail
> P=local S=3251
> 2002-10-17 15:35:01 182Cft-0002jt-00 Error message sent to
> jason@bvsmedia.com
> 2002-10-17 15:35:01 182Cft-0002jt-00 Completed
>
>
> If anyone has any suggestions, please let me know. I'll try anything.
>
Can you 'telnet mail.openskyco.com 25' from mail.bvsmedia.com (and the
other way around)? You might try a traceroute to see where it hangs.
Most likely a network configuration problem (routing or interface
netmask?, firewall/nat?). If you NAT public IPs to private IPs, your
firewall may be blocking loopback from private IP through public IP to
private IP. In that case you need to fix local DNS (or /etc/hosts) so it
goes directly private to private.
--
David Efflandt - All spam ignored http://www.de-srv.com/
http://www.autox.chicago.il.us/ http://www.berniesfloral.net/
http://cgi-help.virtualave.net/ http://hammer.prohosting.com/~cgi-wiz/
| |
| some@one.com 2002-10-21, 11:24 am |
| On Sat, 19 Oct 2002 20:13:48 +0000 (UTC), efflandt@xnet.com (David
Efflandt) wrote:
>On Thu, 17 Oct 2002 15:28:53 -0700, some@one.com <some@one.com> wrote:
>> I seem to not be able to get mail.bvsmedia.com to send mail to
>> mail.openskyco.com. I'm using exim as the MTA on both servers.
>>
>> It will send mail to any other server without any problem. They are
>> both on the same subnet. I'm at a loss as to what the problem might
>> be.
>>
>> Here is a copy of /var/log/exim/mainlog on mail.bvsmedia.com related
>> to the particular problem:
>>
>> 2002-10-17 15:35:01 182Cft-0002jt-00 <= jason@bvsmedia.com
>> H=(Raistlin) [216.111.149.119] P=esmtp S=2418 id=00ec01c2762b
>> $e503d4a0$77956fd8@Raistlin
>> 2002-10-17 15:35:01 182Cft-0002jt-00 ** jshultz@openskyco.com
>> R=lookuphost T=remote_smtp: retry time not reached for any
>> host after a long failure period
>> 2002-10-17 15:35:01 182Cft-0002jz-00 <= <> R=182Cft-0002jt-00 U=mail
>> P=local S=3251
>> 2002-10-17 15:35:01 182Cft-0002jt-00 Error message sent to
>> jason@bvsmedia.com
>> 2002-10-17 15:35:01 182Cft-0002jt-00 Completed
>>
>>
>> If anyone has any suggestions, please let me know. I'll try anything.
>>
>
>Can you 'telnet mail.openskyco.com 25' from mail.bvsmedia.com (and the
>other way around)? You might try a traceroute to see where it hangs.
>
>Most likely a network configuration problem (routing or interface
>netmask?, firewall/nat?). If you NAT public IPs to private IPs, your
>firewall may be blocking loopback from private IP through public IP to
>private IP. In that case you need to fix local DNS (or /etc/hosts) so it
>goes directly private to private.
Ok, I tried telneting from mail.bvsmedia.com to mail.openskyco.com and
this is what happened:
jason@bvsmedia:~$ telnet mail.openskyco.com 25
Trying 216.111.149.112...
Connected to 216.111.149.112.
Escape character is '^]'.
421 Unexpected failure, please try later
However, when I tried the reverse (telneting from opensky to bvsmedia)
it worked just fine.
I can ping mail.openskyco.com from mail.bvsmedia.com and it shows the
correct IP address. I'm not using NAT, I'm using regular public IPs.
mail.bvsmedia.com - 216.111.149.111
mail.openskyco.com - 216.111.149.112
Thanks for your help. I look forward to hearing back from you.
jas
| |
|
|
| some@one.com 2002-10-21, 12:24 pm |
| Actually, I never get it even though it says it sends it to me.
jas
On Mon, 21 Oct 2002 18:20:44 +0200, Sybren
<sybrenUSE@YOURthirdtower.imagination.com> wrote:
>some@one.com wrote:
>
>> 2002-10-17 15:35:01 182Cft-0002jt-00 Error message sent to
>> jason@bvsmedia.com
>
>Do you have that error message?
>
>Sybren
| |
| some@one.com 2002-10-21, 3:24 pm |
| ok. this might help. I just found that I can telnet from my personal
computer to port 25 on mail.openskyco.com however, i can't telnet to
mail.openskyco.com from mail.bvsmedia.com
jas
On Thu, 17 Oct 2002 15:28:53 -0700, some@one.com wrote:
>I seem to not be able to get mail.bvsmedia.com to send mail to
>mail.openskyco.com. I'm using exim as the MTA on both servers.
>
>It will send mail to any other server without any problem. They are
>both on the same subnet. I'm at a loss as to what the problem might
>be.
>
>Here is a copy of /var/log/exim/mainlog on mail.bvsmedia.com related
>to the particular problem:
>
>2002-10-17 15:35:01 182Cft-0002jt-00 <= jason@bvsmedia.com
>H=(Raistlin) [216.111.149.119] P=esmtp S=2418 id=00ec01c2762b
>$e503d4a0$77956fd8@Raistlin
>2002-10-17 15:35:01 182Cft-0002jt-00 ** jshultz@openskyco.com
>R=lookuphost T=remote_smtp: retry time not reached for any
> host after a long failure period
>2002-10-17 15:35:01 182Cft-0002jz-00 <= <> R=182Cft-0002jt-00 U=mail
>P=local S=3251
>2002-10-17 15:35:01 182Cft-0002jt-00 Error message sent to
>jason@bvsmedia.com
>2002-10-17 15:35:01 182Cft-0002jt-00 Completed
>
>
>If anyone has any suggestions, please let me know. I'll try anything.
>
| |
| deacon523 2004-08-12, 11:18 am |
| I had a similar problem. Try resetting the iptables service -
root@linux [/var/log]# telnet mail.openskyco.com 25
Trying 216.111.149.112...
telnet: connect to address 216.111.149.112: Connection refused
root@linux [/var/log]# cd /etc/rc.d/init.d
root@linux [/etc/rc.d/init.d]# ./iptables start
Flushing firewall rules: [ OK ]
Setting chains to policy ACCEPT: nat mangle filter [ OK ]
Unloading iptables modules: [ OK ]
root@linux [/etc/rc.d/init.d]# telnet mail.openskyco.com 25
Trying 216.111.149.112...
Connected to mail.openskyco.com.
Escape character is '^]'.
220 mail.openskyco.com SMTP Server -- No info allowed...
^[^] | |
| zanfur 2004-12-27, 3:56 pm |
| I just struggled with this for a few hours, found and solved the problem, and thought I'd post a response for future googlers hitting this page.
Exim (at least, exim4) in its infinite wisdom, caches transport "hints" in its retry and wait_transport databases. When my smarthost went down for a decently long period of time, my exim installation cached that information and didn't even bother checking to see if it was up, which is why you see no connections using tcpdump.
The solution: Exim comes with three utilities for managing the hints caches, called exim_dumpdb, exim_tidydb, and exim_fixdb. The exim_dumpdb program displays the contents of the cache, exim_tidydb removes old entries, and exim_fixdb recovers corrupt caches. Check the man page for more info. The one you'll need is most likely exim_tidydb, to remove the out-of-date entries. I ran it with an argument of one second, to effectively remove all of them (they'll be recreated on demand). After that, everything magically started working. |
|
|
|
|