Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 08-05-2010, 09:05 PM   #1
Senior Member
Registered: May 2008
Distribution: Slackware
Posts: 1,033

Rep: Reputation: 69
A question about outgoing mail...

I have setup a sendmail server on my centOS box. This boxes uses PAM and I setup /etc/pam.d/smtp.sendmail to use system-auth. IMAP & POP work like a dream, so does SMTP. However there is one thing that I'm confused about with SMTP.

Now I have port 25 open so ANYBODY can log into my SMTP server and send mail in or out. I was able to utilize the access.db file so that now only domains listed in the access.db can send mail out, otherwise known as relaying. So at this point a spammer can log into my SMTP server and send mail in. But he can't send mail out to the internet, which would result in my mail server getting blacklisted. Anyhow so I'm in great shape.

Now here's the part that I'm confused about. I setup a POP email account from my mail server on my cellphone using a 3G connection. I can receive mail via POP on my phone no problem. However, I'm not able to send mail out. So I checked, this SMTP server requires sign in in my cellphone settings. I put in my system login and password(same as SSH login), which works with PAM. Now, I can send mail out w00t. It works.

So here's my quandary. I do not have auth login enabled, how am I able to login to the SMTP server?

For example, if I telnet into the SMTP server on 25. I run
Mail relay denied.
So the domain that my 3G cellphone uses when it tries to connect to my mail server would need to be in the access.db to be able to relay, but it isn't. So how is my phone able to relay on a 3G connection (not wifi, otherwise the IP would be in the access.db file). Is there another way of authenticating to the SMTP server besides AUTH?

Last edited by trist007; 08-05-2010 at 09:13 PM.
Old 08-05-2010, 10:08 PM   #2
Senior Member
Registered: May 2008
Distribution: Slackware
Posts: 1,033

Original Poster
Rep: Reputation: 69
Ok now I got it. Ok so AUTH LOGIN is not required but IT IS enabled. So even though I login from an IP/domain that is not in the access.db file, if I login via AUTH LOGIN, I am then able to relay mail out.

I finally get it. Sweet. Hope this helps somebody else.


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
Which qmail log file details outgoing mail? (have huge outgoing mail volume) hilljockey Linux - Server 2 12-08-2008 05:26 PM
How to Trap all outgoing mail of all user of my mail server singh_chitranjan Linux - Server 1 07-09-2008 07:15 AM
Outgoing mail delay timinator Fedora 3 08-31-2007 09:52 AM
spooled outgoing mail UltramaticOrange Linux - Networking 8 04-25-2006 10:17 PM
How to separate Incoming Mail and Outgoing Mail on SENDMAIL LiloAma Linux - Networking 1 03-22-2004 03:24 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:57 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration