LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-20-2013, 08:17 AM   #1
Majed17
Member
 
Registered: Jul 2011
Posts: 102

Rep: Reputation: Disabled
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.
 
Old 03-20-2013, 07:17 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,355

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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.
 
1 members found this post helpful.
Old 03-21-2013, 12:33 AM   #3
Majed17
Member
 
Registered: Jul 2011
Posts: 102

Original Poster
Rep: Reputation: Disabled
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
 
Old 03-21-2013, 03:25 AM   #4
Majed17
Member
 
Registered: Jul 2011
Posts: 102

Original Poster
Rep: Reputation: Disabled
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
 
Old 03-21-2013, 05:47 AM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,355

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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
 
Old 03-21-2013, 06:28 AM   #6
Majed17
Member
 
Registered: Jul 2011
Posts: 102

Original Poster
Rep: Reputation: Disabled
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.
 
  


Reply

Tags
sendmail, sendmail access, sendmailmc


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
sendmail server not sending mails to domain with "-" hyphen jatinkumar Linux - Server 4 03-01-2012 01:22 AM
Sendmail block sending or receiving .exe files as attachment pankajguptaspn Linux - Server 1 06-22-2010 03:46 AM
Sendmail not sending within local domain GarrettVD Linux - Server 6 04-01-2009 12:16 AM
Sendmail sending as host.domain.com, i want it to be from just domain.com. PlatinumRik Linux - Software 5 10-07-2004 04:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:21 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