LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-24-2005, 04:05 AM   #1
npinney
LQ Newbie
 
Registered: Aug 2005
Posts: 4

Rep: Reputation: 0
Question Can't get mail aliases to work properly


Hi all

This is my first post cos I have spent the best part of a day searching on here and on Google for an answer and thought someone may be able to quickly solve my problem.

I am trying to get mail working on a Redhat Linux box (well on 14 of them to be more precise). I have it working fine on one so I copied the /etc/mail/sendmail.cf and /etc/aliases files to one of the other servers, stopped and restarted sendmail and ran newaliases but still can't get it to work.

The problem I have is that the aliases don't seem to be working so I can quite happily email myself -

e.g.

mail npinney@blahblah.com

and I get that mail come through.

When I try to mail root however it disappears forever.

The aliases file has this on the end....

root: npinney@blahblah.com

but I never get the mail sent to me at my email address.

Anyone got any ideas?

Any help is much appreciated. Thanks
 
Old 08-24-2005, 08:49 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 271Reputation: 271Reputation: 271
What do your logs tell you? Any errors? Are you trying to send to another domain or one of your own? The recieving end might be rejecting the emails if your using a DHCP connection or the like for your current mail server. Also is this mail server an actual domain server you've setup with real information like with MX records, DNS configured properly, etc?
 
Old 08-24-2005, 09:26 AM   #3
npinney
LQ Newbie
 
Registered: Aug 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for the reply.

The maillog says this after I tried to "mail root".....

Aug 24 14:12:43 tubaircaropt4 sendmail[8046]: unable to qualify my own domain na
me (tubaircaropt4) -- using short name
Aug 24 14:12:43 tubaircaropt4 sendmail[8046]: j7OEChPe008046: from=root, size=34
, class=0, nrcpts=1, msgid=<200508241412.j7OEChPe008046@tubaircaropt4>, relay=ro
ot@localhost
Aug 24 14:12:43 tubaircaropt4 sendmail[8193]: j7OEChQS008193: from=<root@tubairc
aropt4>, size=306, class=0, nrcpts=1, msgid=<200508241412.j7OEChPe008046@tubairc
aropt4>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Aug 24 14:12:43 tubaircaropt4 sendmail[8193]: j7OEChQS008193: to=<root@tubaircar
opt4>, delay=00:00:00, mailer=local, pri=30306, dsn=4.4.3, stat=queued
Aug 24 14:12:43 tubaircaropt4 sendmail[8046]: j7OEChPe008046: to=root, ctladdr=r
oot (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30034, relay=[127.
0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (j7OEChQS008193 Message accepted for de
livery)

I am sending to the same domain.

We are using static IP addresses.

The mail server is an exchange 5.5 server which is configured to receive emails relayed from our external mail message handling company (message labs). MX records for our email domain point to the Message labs email servers.

It does have internal DNS configured correctly

It does works fine for one of my Linux servers with the same setup (more or less) to the others I am trying to configure so I figured it would work for all of them.

I can telnet to the mail server as well ...

telnet oscar-connector.britanniaairways.com 25
Trying 10.35.7.75...
Connected to oscar-connector.britanniaairways.com (10.35.7.75).
Escape character is '^]'.
220 oscar-connector.britanniaairways.com ESMTP Server (Microsoft Exchange Intern
et Mail Service 5.5.2657.72) ready


Hope this helps a bit???
 
Old 08-24-2005, 09:37 AM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 271Reputation: 271Reputation: 271
I would think it's a sendmail configuration problem according to the first line in your logs:

Aug 24 14:12:43 tubaircaropt4 sendmail[8046]: unable to qualify my own domain na
me (tubaircaropt4) -- using short name

If this sendmail server is only forwarding the messages to the Exchange server, can it actually communicate to the Exchange server by ping, etc? Does it recognize it by name if that's what it's using? Do you see any logs on the Exchange server that tells you the messages are even being recieved or attempted to be recieved?
 
Old 08-24-2005, 10:19 AM   #5
npinney
LQ Newbie
 
Registered: Aug 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Yes I can ping the server ....

#ping oscar-connector.britanniaairways.com
PING oscar-connector.britanniaairways.com (10.35.7.75) 56(84) bytes of data.
64 bytes from oscar-connector.britanniaairways.com (10.35.7.75): icmp_seq=0 ttl=128 time=3.69 ms
64 bytes from oscar-connector.britanniaairways.com (10.35.7.75): icmp_seq=1 ttl=128 time=0.276 ms
64 bytes from oscar-connector.britanniaairways.com (10.35.7.75): icmp_seq=2 ttl=128 time=1.14 ms

--- oscar-connector.britanniaairways.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2009ms
rtt min/avg/max/mdev = 0.276/1.705/3.695/1.451 ms, pipe 2

so it is in the /etc/hosts file as well.

We lowered the logging level on the exchange servers as it was generating too many logs so there is not much in them I am afraid. It just shows the telnets that I did.

Why does it manage to email me ok but can't resolve the alias for root?
 
Old 08-25-2005, 03:51 AM   #6
npinney
LQ Newbie
 
Registered: Aug 2005
Posts: 4

Original Poster
Rep: Reputation: 0
I also get emails sent to me about non-delivery ....

The original message was received at Sat, 20 Aug 2005 04:46:35 GMT
from localhost
with id j7K4kZL1001870

----- The following addresses had permanent fatal errors -----
<root@tubaircaropt4>

----- Transcript of session follows -----
451 tubaircaropt4: Name server timeout
Message could not be delivered for 5 days
Message will be deleted from queue

The original message was received at Mon, 15 Aug 2005 04:03:00 GMT
from localhost.localdomain [127.0.0.1]

----- The following addresses had permanent fatal errors -----
<root@tubaircaropt4>

----- Transcript of session follows -----
451 tubaircaropt4: Name server timeout
451 tubaircaropt4: Name server timeout
451 tubaircaropt4: Name server timeout
451 tubaircaropt4: Name server timeout
Message could not be delivered for 5 days
Message will be deleted from queue
451 tubaircaropt4: Name server timeout
 
  


Reply


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sendmail: not possible to pipe mail to programs using ~/.forward && /etc/mail/aliases fhd Linux - Networking 1 01-09-2005 06:05 PM
mail server dosnt work properly AZIMBD03 Linux - Networking 4 04-11-2004 12:28 PM
Wildcard Mail Aliases js_530 Linux - Networking 2 09-10-2003 11:15 PM
ISP mail aliases + Domain mail how? HoundDog Linux - Networking 1 08-09-2003 07:17 AM
sendmail & /etc/mail/aliases adam_boz Linux - Software 5 09-27-2002 12:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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