LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-25-2009, 12:55 AM   #1
depam
Member
 
Registered: Sep 2005
Posts: 861

Rep: Reputation: 30
Xmail and SMTP Relaying


Hi,

I was able to setup xmail on my CentOS box. I have disabled SMTP Relaying but instead I have allowed the following in my smtprelay.tab

"127.0.0.1" "255.255.0.0" --> For webmail access
"192.168.0.0" "255.255.0.0" --> LOCAL LAN Access

This works fine when the users configured with email client is within the LAN area, they can send and receive emails.

However, whenever they are outside the LAN or remotely accessing their emails they can check and receive their emails but they cannot send. The server would reply "550 Relay Denied". Do you have other methods to allow SMTP Relaying without having my mail server Open-relayed?

This is important for roadwarriors who would want to access their emails and use the existing SMTP Server.

What is the difference between POP3 before SMTP and SMTP Auth? Can you please advice?

Thanks and Regards.
 
Old 03-26-2009, 10:47 AM   #2
tuliojm
LQ Newbie
 
Registered: Mar 2008
Location: Curitiba
Posts: 18

Rep: Reputation: 2
Hello,

I do not know xmail, but this behavior is standard in others MTA.
POP before SMTP creates a temporary permission to relay emails from the address used by the user when authenticated via pop-3 (so, you need to check your pop-3 mailbox before send messages).
SMTP auth asks the the user for his password when he tries to send the message from an source address no allowed to relay (different from "192.168.0.0" or "127.0.0.1").
These are the ways to send messages safely when you're outside of your network.
Another option could be create a VPN that puts the roadwarrior "inside" your network (with an allowed address).

Regards,
Tulio Munhoz
 
Old 03-27-2009, 01:01 AM   #3
depam
Member
 
Registered: Sep 2005
Posts: 861

Original Poster
Rep: Reputation: 30
Hi Tulio,

Thanks. What approach is the safest? Is it the POP beofre SMTP or the SMTP Auth? What MTA are you using and from your experience which is the best? I have setup Xmail because it is easier to do. But if you can suggest a good MTA which is easier to setup let me know. I want to incorporate SpamAssassin. Is there such a package that includes it?

Thanks.
 
Old 03-31-2009, 09:21 AM   #4
tuliojm
LQ Newbie
 
Registered: Mar 2008
Location: Curitiba
Posts: 18

Rep: Reputation: 2
Hi depam,

Some time ago, some clients could not work perfectly with POP before SMTP (when you did click in "send and receive" instead they authenticate in pop before send the messages, they tied to send the messages first). So since then, I've used SMTP auth and I don't know the POP before SMTP status today.
I've used postfix for years without problems.
I also worked with qmail, but I think that postfix easier to setup and administrate (my personal opinion).
You can easily integrate spamassassin and/or an anti-virus with amavis (http://www.ijs.si/software/amavisd/)
 
Old 04-07-2009, 11:24 PM   #5
depam
Member
 
Registered: Sep 2005
Posts: 861

Original Poster
Rep: Reputation: 30
Hi tuliojm,

Thanks a lot for the info. I hope I can try the postfix MTA some other time if time permits. Can you point me to the right resource for starters? Thanks.
 
  


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
Relaying mails through auth-SMTP server ? nileshgr Linux - Server 2 05-25-2008 11:14 PM
sendmail relaying with smtp-auth strange prob liam1234321 Linux - Server 1 05-20-2008 11:30 AM
[SOLVED] SMTP server responds: Relaying denied, proper authentication required sarsaeol Linux - Newbie 2 04-28-2008 04:52 PM
Problem in relaying outbound mails for specific smtp gurl4sh25 Linux - Server 3 08-31-2006 11:39 PM
smtp relaying is prohibited sami Linux - Networking 4 04-06-2004 09:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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