Solved

Sending mail from Redhat 9

Posted on 2004-09-22
4
676 Views
Last Modified: 2008-03-10
I'm using a web based helpdesk system (modelled on the IRM from www.Altrustrialie.org) which has always been associated with a domain name.

This is on a redhat 9 box with lamp.

We have just installed a number of public IP addresses on the LAN and want to use one for our helpdesk system.

The problem is when i try to change adddress from the dns (wtl.2y.net) url to the IP address (81.188.8.80), email ceases to function.

In the mail  log i see the following:

Final-Recipient: RFC822; support@wtl.be
Action: failed
Status: 5.1.1
Remote-MTA: DNS; smtp.easynet.be
Diagnostic-Code: SMTP; 550-Verification failed for <apache@linux2.localdomain>
Broadcast message from root (Wed Sep 22 14:28:59 2004):

Under the network settings i have mapped linux2 to the public IP of 81.188.8.80 but this has not helped much. Can anyone suggest some ideas?

Twisted up.

rIcHyRich.
0
Comment
Question by:richardwalton
  • 2
  • 2
4 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 12122704
Without knowing more I'd suspect that the mail is failing because the remote MTA can't verify, by DNS lookup, the sender's domain (apache@linux2.localdomain). And, obviously that hostname isn't a member of any registered domain.

The fix should be simply a matter of ensuring that the IP of the machine is associated with an A & PTR record in the DNS and setting the hostname in /etc/sysconfig/network to be that same hostname.
0
 

Author Comment

by:richardwalton
ID: 12124372
OK i've reconfigured the system back the way it was, using the domain name wtl.2y.net which maps to our external router(81.188.8.66) which takes it through to the NAT table and into 192.168.0.227 on port 28000

In my fwd looking DNS server I have a pointer that states: linux2 = 192.168.0.227
on the reverse i have :
linux2.wtl.be = 192.168.0.227

In my mail log from the linux box it tells me that previously the host name had been root@wtl.2y.net. e.g.

Sep 19 08:41:02 linux2 sendmail[25245]: i8J6f1dZ025243: to=<root@wtl.2y.net>, delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30478, relay=smtp.easynet.be. [212.100.160.77], dsn=2.0.0, stat=Sent (OK id=1C8vO5-0002iw-D8)

but now I see the following in my log instead and i dont receive the email:

Sep 22 17:56:22 linux2 sendmail[4644]: i8MFuMQX004644: from=apache, size=2536, class=0, nrcpts=2, msgid=<200409221556.i8MFuMQX004644@linux2.wtl.be>, relay=apache@localhost
Sep 22 17:56:22 linux2 sendmail[4646]: i8MFuMPr004646: from=<apache@linux2.wtl.be>, size=2758, class=0, nrcpts=2, msgid=<200409221556.i8MFuMQX004644@linux2.wtl.be>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Sep 22 17:56:22 linux2 sendmail[4644]: i8MFuMQX004644: to=support@wtl.be,richard.walton@wtl.be, ctladdr=apache (48/48), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=60155, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (i8MFuMPr004646 Message accepted for delivery)
Sep 22 17:56:22 linux2 sendmail[4648]: i8MFuMPr004646: to=<richard.walton@wtl.be>, ctladdr=<apache@linux2.wtl.be> (48/48), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=60377, relay=smtp.easynet.be. [212.100.160.77], dsn=5.1.1, stat=User unknown
Sep 22 17:56:23 linux2 sendmail[4648]: i8MFuMPr004646: to=<support@wtl.be>, ctladdr=<apache@linux2.wtl.be> (48/48), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=60377, relay=smtp.easynet.be. [212.100.160.77], dsn=2.0.0, stat=Sent (OK id=1CA9UZ-0002RW-Pe)
Sep 22 17:56:23 linux2 sendmail[4648]: i8MFuMPr004646: i8MFuNPr004648: DSN: User unknown
Sep 22 17:56:23 linux2 sendmail[4648]: i8MFuNPr004648: to=root, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=33782, dsn=2.0.0, stat=Sent

Any Ideas?





0
 
LVL 40

Accepted Solution

by:
jlevie earned 300 total points
ID: 12124636
I'm confused by your setup. You state that when it was working the hostname was wtl.2y.net, but then state that your private DNS is using linux2.wtl.be. That's two completely different hostnames & domains.

Could you provide a better explanation of the environment?
0
 

Author Comment

by:richardwalton
ID: 12125297
:)) well what a supprise. Its been about 6 hours since i've been unable to send email and you hit the nail on the head:))

Under the network settings I had:

192.168.0.229 = linux2.wtl.be
AND!!
81.188.8.66 = wtl.2y.net

a mistake that has caused me pain. Never to be made again.

THANKYOU for your coments and support, i wouldnt have done it without you:))

BiGUP Yaself!!
rIcHyRich:)
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now