LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 08-05-2010, 08:05 PM   #1
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 70
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
Code:
ehlo domain.com
mail from:user@domain.com
rcpt to:user@domain.com
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 08:13 PM.
 
Old 08-05-2010, 09:08 PM   #2
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,052

Original Poster
Rep: Reputation: 70
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.
 
  


Reply



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 04:26 PM
How to Trap all outgoing mail of all user of my mail server singh_chitranjan Linux - Server 1 07-09-2008 06:15 AM
Outgoing mail delay timinator Fedora 3 08-31-2007 08:52 AM
spooled outgoing mail UltramaticOrange Linux - Networking 8 04-25-2006 09:17 PM
How to separate Incoming Mail and Outgoing Mail on SENDMAIL LiloAma Linux - Networking 1 03-22-2004 02:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:31 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
Open Source Consulting | Domain Registration