LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   sendmail not sending files to a particular domain (http://www.linuxquestions.org/questions/linux-newbie-8/sendmail-not-sending-files-to-a-particular-domain-4175454839/)

Majed17 03-20-2013 08:17 AM

sendmail not sending files to a particular domain
 
Hello, i have a weird problem with sendmail.. i can send emails to the domain profiland.by but not to metz.by
knowing that metz.by is where sendmail is contained.
here is the log file message:
Code:

Mar 20 16:06:20 srvmon-kozlova sm-mta[19215]: r2KD6HD0019215: to=<monitoring@profiland.by>, ctladdr=<root@srvmon-kozlova.profiland.by> (0/0), delay=00:00:03, xdelay=00:00:03, mailer=esmtp, pri=30372, relay=mx2.activeby.net. [109.237.213.144], dsn=2.0.0, stat=Sent (OK id=1UIIig-0008Km-IZ)
obviously this message made it.
here is the message for the message that didn't make it:
Code:

Mar 20 16:06:37 srvmon-kozlova sm-mta[19891]: r2KD6ZBM019891: to=<monitor@metz.by>, ctladdr=<root@srvmon-kozlova.profiland.by> (0/0), delay=00:00:02, xdelay=00:00:02, mailer=esmtp, pri=30357, relay=mail01.hoster.by. [93.125.30.150], dsn=5.0.0, stat=Service unavailable
here is the sendmail configuration:
Code:

divert(-1)
divert(0)dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`$Id: sendmail.mc,v 1.2 2004/12/07 01:59:31 g2boojum Exp $')dnl
OSTYPE(linux)dnl
DOMAIN(generic)dnl
FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
FEATURE(`local_lmtp',`/usr/sbin/mail.local')dnl
FEATURE(`local_procmail')dnl
MASQUERADE_AS(profiland.by)dnl
FEATURE(masquerade_envelope)dnl
FEATURE(masquerade_entire_domain)dnl
MASQUERADE_DOMAIN(profiland.by)dnl
FEATURE(`access_db', `hash -T<TMPF> -o /etc/mail/access.db')dnl
DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl
MAILER(local)dnl
MAILER(smtp)dnl

not set as relay..
here is the hosts file configuration:
Code:

# IPv4 and IPv6 localhost aliases
127.0.0.1        srvmon-kozlova.profiland.by srvmon-kozlova localhost
::1                localhost
172.16.1.28        srvmon-kozlova.profiland.by srvmon-kozlova
91.149.180.212 srvmon-kozlova.profiland.by srvmon-kozlova
#
# Imaginary network.
#10.0.0.2              myname
#10.0.0.3              myfriend
172.16.0.10                mail.metz.local

knowing that if i rename the server to srvmon-kozlova.metz.by in the hosts file then it stops sending mail all together with dsn 5.0.0 error even to the profiland webhost. i'm begining to suspect that this is a white list issue with the metz.by domain in the mail01.hoster.by server. or is there something to be added to the access file? thanks for any help.

chrism01 03-20-2013 07:17 PM

This
Code:

relay=mail01.hoster.by. [93.125.30.150], dsn=5.0.0, stat=Service unavailable
says there's no mail server at that IP, or at least you can't reach that system on port 25 eg intervening firewall.
I'd start by trying to telnet to port 25 on that system and see what response you get.

Majed17 03-21-2013 12:33 AM

thanks for the reply..didn't think of this though it is unreachable, i guess they need to be contacted..i tried sending to moitor @ metz.local didn't work either because it is going through the same hoster.
Code:

srvmon-kozlova ~ # telnet mail01.hoster.by
Trying 93.125.30.150...
telnet: Unable to connect to remote host: Connection refused


Majed17 03-21-2013 03:25 AM

ahh i forgot to add port 25 to it , it does telnet...
Code:

srvmon-kozlova ~ # telnet mail01.hoster.by 25
Trying 93.125.30.150...
Connected to mail01.hoster.by.
Escape character is '^]'.
220 mail01.hoster.by ESMTP mail01.hoster.by 6.0.2 is glad to see you!
^]
telnet> quit
Connection closed.

what else is there to try? thanks for the help

chrism01 03-21-2013 05:47 AM

The implication is that it was down at the time..

1. try sending email again & check the logs
2. contact the admin for the remote system

Majed17 03-21-2013 06:28 AM

well thanks for the reply..i retried..telnet works but email doesn't.. i tried sending an email to yahoo but got status dsn 4.0.0 status: differed which is atleast not dsn 5.0.0 so i tried to send an email to my lebanese email and it passed through..to me this only means one thing.
the problem is with hoster.by...they can be telneted but emails don't go through which means it is some kind of problem with them what ever that is.


All times are GMT -5. The time now is 03:25 PM.