DNS config preventing mail delivery


 
Thread Tools Search this Thread
Special Forums IP Networking DNS config preventing mail delivery
# 8  
Old 06-28-2015
I realise that I'm joining this thread very late but you say "mailx command is not working anymore, so the servers are not sending email alerts to administrators". So presumably your user community is still able to use email otherwise they would all be complaining? You are saying that emails to sysadmins aren't working because their domain address(es) are not being resolved?

If that is the case then you have two options:
  1. Get the sysadmins target domains also registered on the DNS system so they are also resolved, or,
  2. Insert the sysadmins email domains into the /etc/hosts file on all systems. You will need to enter the FQDN in there.

In generic Unix terms, OS's (and you didn't say which OS this is) will look in /etc/hosts for name resolution before resorting to DNS. Therefore, by inserting IP addresses in /etc/hosts you can catch it early and resolve the name within the system.

If I've still misunderstood the issue please explain further.

Last edited by rbatte1; 06-29-2015 at 06:30 AM.. Reason: Converted text numbered list to formatted numbered list with LIST=1 tags
# 9  
Old 07-02-2015
on the
Code:
/etc/hosts

of the servers, I have inserted
Code:
10.100.48.11    prep01.headquarter.tmm

as instructed by the DNS admin, but unfortunately if I run the
Code:
mailx

command in this server, I do not get mail from it
# 10  
Old 07-02-2015
I'm joining this thread even later than my learned friend hicksd8, so apologies for that.

Do you get any errors at all? I'm thinking of it failing to connect and leaving a dead.letter file, return e-mail to the sending account, mail stuck in the mail queue (use mailq to see this)

If it is all clear, then see if you can try sendmail -v target.user@domain.name
It will just sit at a prompt, but you can type some simple message and then a line just containing a full-stop . to end the text.

My sanitised session looks like this. I type the parts in green:-
Code:
$> sendmail -v robin@mydomain.somewhere
Hello from the unix server.
.
robin@mydomain.somewhere... Connecting to my-relay-01.internal.domain. via relay...
220-SMTP Relay
220 Warning: no name found in DNS for your host address
>>> EHLO my.unix.server.domain
250-unix.server.domain
250-SIZE 0
250-ETRN
250-ENHANCEDSTATUSCODES
250-DSN
250-VRFY
250-AUTH 
250 8BITMIME
>>> MAIL From:<ROBIN@my.unix.server.domain> SIZE=28
250 2.0.0 ROBIN@my.unix.server.domain OK
>>> RCPT To:<robin@mydomain.somewhere>
250 2.0.0 robin@mydomain.somewhere OK
>>> DATA
354 Ready for data
>>> .
250 2.0.0 Message received OK
robin@mydomain.somewhere... Sent (2.0.0 Message received OK)
Closing connection to my-relay-01.internal.domain.
>>> QUIT
221 2.0.0 unix.server.domain closing
$>

If you get a train of output like this and without errors, then you can be happy that the mail is leaving your unix server. You will then need to talk to whomever manages the mail relay server. There can be filtering in place to prevent spam generation and you may be getting caught in that. Some companies only allow mail from recognised systems.


I hope that this helps,
Robin
# 11  
Old 07-02-2015
Hi

this is what I get when I run the
Code:
sendmail

command:

Code:
sendmail -v fretagi@mydomain.com
Hello from the unix server.
.
/dead.letter... Saved message in /dead.letter

I am not sure what dead.letter means
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX and Linux Applications

Qmail mail delivery problem

Dear Concern, As per below article, we have configured qmail in our system. THE LINUX STUFF: qmail Installation Steps on Linux But when we try to send any mail in own domain, got below error message. Please advise. Apr 17 17:01:20 BLAUDITSCPTEST sendmail: alias database /etc/aliases... (0 Replies)
Discussion started by: makauser
0 Replies

2. UNIX for Dummies Questions & Answers

DNS mail server configuration

Hello fellow unix dudes, I have a question on DNS. Basically the error is my domain.com server can not send email to my mail.domain.com server. I have a virtual server with one IP say 192.10.11.12 and a mail server with iP 172.4.5.6 When the virutal server on ip 192.10.11.12 was setup,... (0 Replies)
Discussion started by: photon
0 Replies

3. IP Networking

DNS Cache-Only Config Advice

Hi Chaps and Chappettes, I've had a short period of time recently to learn and implement DNS cache-only in our organisation. Trouble is, according to my tcpdumps, the amount of traffic on port 53 has increased. This is of course the exact opposit of the desired effect. Would y'all mind looking... (2 Replies)
Discussion started by: danny.hudson
2 Replies

4. Ubuntu

Linux Redhat ES 4.0 - DNS Config Issues

Hello all, I've a very strange thing hapenning in my Sys, I've configured the IP, DNS eveything for my internat connection, but Im only able to browse Redhat.com websites. I cant open anyother site!!! :eek: Im sure the internet is configured 'coz it displays the list of avail updates for... (11 Replies)
Discussion started by: AbhijithS
11 Replies

5. UNIX for Advanced & Expert Users

Mail/DNS problem and questions

It seems that mail from our servers are going through a third party security mail scanner (offsite), due the the mx records specified on our internal and external DNS servers. However, our internal user to user email does not go through the third party security mail scanner. I discovered... (2 Replies)
Discussion started by: xnightcrawl
2 Replies

6. UNIX for Dummies Questions & Answers

Mail delivery confirmation

If I am sending mail with this command: mail .......@whatever.com < filename, is it possible to get delivery confirmation? Thanks (3 Replies)
Discussion started by: CSGUY
3 Replies

7. Solaris

DHCP DNS Config

I'm running Solaris 9 and I need my box to request it's DNS servers off a DHCP server - can I do this? (1 Reply)
Discussion started by: Jdogg
1 Replies

8. UNIX for Dummies Questions & Answers

553 config error: mail loops back to me (MX problem)

I recieve 553 5.3.4 mail.xxxx.com config error: mail loops back to me (MX problem?) when I try to send email from client . The message reaches the server and dies there I'm using sendmail 8.12.9 on OpenBSD 3.3. I can check mail on client with no problem Thanks for any help (5 Replies)
Discussion started by: bluehell
5 Replies

9. UNIX for Advanced & Expert Users

how to send mail from aix to lotus with dns

hi , before installing dns on my server, all was ok I was able to send message from aix to my lotus notes server thanks to this command: mail -v aaaaaaaaaa@bbbbbbb.fr in my /etc/hosts , there was xx.xx.xx.xx lotus xx.xx.xx.xx server name in my... (3 Replies)
Discussion started by: hubert
3 Replies

10. UNIX for Advanced & Expert Users

Mail Server config

Hi all, We've an application that is for recording our daily services to clients, and it has mailing option for sending email to any account to inform them about client requests ,but at this time the mailing part doesn't work. So i want to know that this WS should be assigned as mail server for... (2 Replies)
Discussion started by: nikk
2 Replies
Login or Register to Ask a Question