LinuxQuestions.org
Visit Jeremy's Blog.
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 01-06-2004, 03:55 PM   #1
BoneDaddy13
LQ Newbie
 
Registered: Jan 2004
Location: So.Cal.
Distribution: Red Hat 9
Posts: 7

Rep: Reputation: 0
Angry Sendmail Relay Issue


OK, I'm not a total noob with linux, but pretty close. I did search for this, but didn't see the same issue anywhere. I've got a sendmail issue that's driving me nuts.

I'm running the latest sendmail on RH9 and everything is working, for the most part. I've got it set up to allow POP3 so I can get to it from other machines on my network and at work. If I'm on the server itself, I can send, receive & reply with no problems. But, if I go to my PC and get try to send or reply to something, I get relay errors. I can download my mail from the server to my PC with no issues, just can't send anything out. I've looked at the sendmail.mc file repeatedly, but I must be missing something. I can post my .mc file if it would help.

TIA,
Bone
 
Old 01-06-2004, 03:57 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
Did you add your relay-domains file to allow from particular domains, etc? I think that is the correct file, I might be mistaken though.
 
Old 01-07-2004, 12:22 AM   #3
BoneDaddy13
LQ Newbie
 
Registered: Jan 2004
Location: So.Cal.
Distribution: Red Hat 9
Posts: 7

Original Poster
Rep: Reputation: 0
Would I add my own domain in there? I didn't think I had to do that, but I'll give it a whirl.
 
Old 01-07-2004, 08:38 AM   #4
ScooterB
Member
 
Registered: Sep 2003
Location: NW Arkansas
Distribution: Linux Redhat 9.0, Fedora Core 2,Debian 3.0, Win 2K, Win95, Win98, WinXp Pro
Posts: 344

Rep: Reputation: 31
I'm kinda new at this also, but I would check in your /etc/mail/access file and make sure that you have everyone entered. Then you will need to rebuild the database itself (it's labeled access.db) I forget the exact syntax but I believe the documentation is pretty good on that part. Once you restart sendmail (from root@"whateverdomain"/ # /etc/rc.d/init.d/sendmail restart) it should allow you to send. Also make sure that you have all of the domains listed in /etc/mail/local-host-names. That should take care of it. If not repost and let us see what else is going on.
 
Old 01-10-2004, 09:06 PM   #5
BoneDaddy13
LQ Newbie
 
Registered: Jan 2004
Location: So.Cal.
Distribution: Red Hat 9
Posts: 7

Original Poster
Rep: Reputation: 0
OK, I have all of that and still an get error like this:

The message could not be sent because one of the recipients was rejected by the server. The rejected e-mail address was 'agtonline@hotmail.com'. Subject 'test', Account: 'BD13 @ AGT', Server: 'mail.americangametek.com', Protocol: SMTP, Server Response: '550 5.7.1 <agtonline@hotmail.com>... Relaying denied. Proper authentication required.', Port: 25, Secure(SSL): No, Server Error: 550, Error Number: 0x800CCC79

Any ideas???
 
Old 01-10-2004, 09:41 PM   #6
g-rod
Member
 
Registered: Dec 2003
Location: Long Island, NY USA
Distribution: RedHat, SUSE
Posts: 336

Rep: Reputation: 30
I am no mail(nor DNS) expert, but you can just send mail out over the internet without have a valid reverse lookup on you IP to a valid MX record. When you send a mail message out the mail server looks to see if it is coming from a server that is a mail server for that domain.
Long and short you need to have DNS setup so that you are a valid domain on the internet and you mail server has an MX (mail exchange record) and have the reverse lookups setup correctly.
Your issue is a DNS not a mail issue.
 
Old 01-10-2004, 09:47 PM   #7
BoneDaddy13
LQ Newbie
 
Registered: Jan 2004
Location: So.Cal.
Distribution: Red Hat 9
Posts: 7

Original Poster
Rep: Reputation: 0
I've got a valid MX record out there. But not sure about reverse lookup, it's on a friends box until I get mine going. How come everything can come in fine, just not go out if it's a DNS issue. I so confused!
 
Old 01-10-2004, 09:57 PM   #8
g-rod
Member
 
Registered: Dec 2003
Location: Long Island, NY USA
Distribution: RedHat, SUSE
Posts: 336

Rep: Reputation: 30
Reverse lookup is given an IP addres what name does it resovle to.
For example if I try find the mail servers for microsoft.com DNS gives me a ituple of different IPs. If I try to lookup the name base on the IP it resolves back microsoft. Make sure that if you try to lookup an MX IP for your domain it resolves your IP. If you try to lookup a name from an ip it resoves to you.



gerard@laptop:~> nslookup
Note: nslookup is deprecated and may be removed from future releases.
Consider using the `dig' or `host' programs instead. Run nslookup with
the `-sil[ent]' option to prevent this message from appearing.
> set q=MX
> microsoft.com
Server: 167.206.3.169
Address: 167.206.3.169#53

Non-authoritative answer:
microsoft.com mail exchanger = 10 maila.microsoft.com.
microsoft.com mail exchanger = 10 mailb.microsoft.com.
microsoft.com mail exchanger = 10 mailc.microsoft.com.

Authoritative answers can be found from:
microsoft.com nameserver = dns1.cp.msft.net.
microsoft.com nameserver = dns1.dc.msft.net.
microsoft.com nameserver = dns1.sj.msft.net.
microsoft.com nameserver = dns1.tk.msft.net.
microsoft.com nameserver = dns3.uk.msft.net.
maila.microsoft.com internet address = 131.107.3.125
maila.microsoft.com internet address = 131.107.3.124
mailb.microsoft.com internet address = 131.107.3.123
mailb.microsoft.com internet address = 131.107.3.122
mailc.microsoft.com internet address = 131.107.3.126
mailc.microsoft.com internet address = 131.107.3.121
> 131.107.3.125
Server: 167.206.3.169
Address: 167.206.3.169#53

Non-authoritative answer:
125.3.107.131.in-addr.arpa name = mail1.microsoft.com.

Authoritative answers can be found from:
107.131.in-addr.arpa nameserver = DNS1.TK.MSFT.net.
107.131.in-addr.arpa nameserver = DNS2.CP.MSFT.net.
107.131.in-addr.arpa nameserver = DNS1.CP.MSFT.net.
107.131.in-addr.arpa nameserver = DNS1.DC.MSFT.net.
107.131.in-addr.arpa nameserver = DNS1.SJ.MSFT.net.
DNS2.CP.MSFT.net internet address = 207.46.138.21
>
 
Old 01-10-2004, 10:49 PM   #9
BoneDaddy13
LQ Newbie
 
Registered: Jan 2004
Location: So.Cal.
Distribution: Red Hat 9
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks for the info. When I did the lookup on my MX record, everything pointed to my IP. But, when I looked up my IP, everyhting from my DSL ISP showed up. So, I added my ISP's domain name to my /etc/mail/access file and voila! Now everything works.

However, does this leave me open to relay issue? I'm not worried about my ISP, but can anyone in the domain relay through my box now???
 
Old 01-12-2004, 09:18 AM   #10
ScooterB
Member
 
Registered: Sep 2003
Location: NW Arkansas
Distribution: Linux Redhat 9.0, Fedora Core 2,Debian 3.0, Win 2K, Win95, Win98, WinXp Pro
Posts: 344

Rep: Reputation: 31
Thats where you have to start tuning your files to keep people out that you don't want in. That's where I'm at now. We're getting spammed and I'm trying to put a stop to it with the files previously mentioned (access, local-host-names, etc) and with spamassassin. One thing I would encourage you to do is lock down all the outside ports except what you will be using for email (if this is to be used for just a mail server). Then set up tripwire to monitor all of your critical files and watch for changes. This would happen if someone broke in and modified files so that they could use your mail server for remailing spam. Then get a anti-virus program. I would recommend Vexira for Mail Servers (Milter Version). It's real easy to set up and if you have problems their tech support is very knowledgeable and helpful. Give these things a shot and let us know how it's going! Good luck!
 
Old 01-16-2004, 05:18 PM   #11
DrewMoen
LQ Newbie
 
Registered: Jan 2004
Posts: 2

Rep: Reputation: 0
You need to tell Snedmail what domains to relay

RELAY_DOMAIN(`your.domain.com')

or

RELAY_DOMAIN_FILE(`/etc/mail/relay-domains')

Then put you domains in the listed file.
 
Old 01-16-2004, 06:08 PM   #12
ScooterB
Member
 
Registered: Sep 2003
Location: NW Arkansas
Distribution: Linux Redhat 9.0, Fedora Core 2,Debian 3.0, Win 2K, Win95, Win98, WinXp Pro
Posts: 344

Rep: Reputation: 31
I might add a little something here. I have just spent the last one and a half days reconstructing my mail server. I put the guys that were spamming me in the access database but instead of RELAY or OK I used REJECT. Bad choice!!! That (I learned later) sends a message back saying that the mail had been rejected. That must have pissed em off because they hacked in overnight and removed my partition and boot files. The server was up and running but acting really flaky. I rebooted and it puked. So let me just warn you: close all ports that you don't have to have open (for mail just 25, 110) and get an anti-virus and anti-spam program. I learned my lesson!!! But I learned alot through it all. Hope you don't have similar luck. Anyway, I'm all back and running now. And running real tight too. I have been learning about using iptables and setting up the firewall correctly (Reshat has a real good book on this by the way). You can't even ping my server now and get a reply. But it's there!!!
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail Relay Help midmichmark Linux - Networking 1 12-29-2004 07:20 AM
Sendmail Relay johnsfrj Linux - Newbie 0 10-06-2004 11:25 AM
relay mail to sendmail relay server??? lemay_jeff Linux - Newbie 0 07-06-2004 05:54 PM
sendmail relay atomicx Linux - General 2 01-04-2004 02:46 AM
Sendmail relay issue ppuddick Linux - Networking 3 06-01-2003 09:23 PM


All times are GMT -5. The time now is 10:55 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration