LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-27-2014, 08:13 AM   #1
Toasterman
Member
 
Registered: Oct 2013
Posts: 77

Rep: Reputation: Disabled
Opening mail server to outside


Hello, our mail server is running on CentOS. It has both postfix and ASSP installed.
When trying to access the email address outside the company, it allows me to receive but not send. It says it does not support authentication or something to that extent. I know this has something to do with the Anti-Spam SMTP Proxy Server. Unfortunately our manager was laid off and I'm no Linux expert. Thanks in advance.
 
Old 06-27-2014, 09:40 AM   #2
canussie
Member
 
Registered: Jun 2014
Location: Calgary
Posts: 50

Rep: Reputation: 7
First of all..
How are you trying to access the email externally? Are you using a webmail service or just connecting to smtp/pop directrly externally?
Have you looked at /var/log/maillog?
 
Old 06-27-2014, 10:58 AM   #3
Toasterman
Member
 
Registered: Oct 2013
Posts: 77

Original Poster
Rep: Reputation: Disabled
I'm accessing IMAP/SMTP directly.
This issue may already be resolved because I've had one successful test. I will update with more information when I'm sure.
 
Old 06-27-2014, 11:00 AM   #4
canussie
Member
 
Registered: Jun 2014
Location: Calgary
Posts: 50

Rep: Reputation: 7
ok no worries.
 
Old 06-27-2014, 01:13 PM   #5
Toasterman
Member
 
Registered: Oct 2013
Posts: 77

Original Poster
Rep: Reputation: Disabled
It turns out I just had to use port 25 instead of 587. Thank you

Last edited by Toasterman; 07-03-2014 at 08:49 AM.
 
Old 07-03-2014, 08:49 AM   #6
Toasterman
Member
 
Registered: Oct 2013
Posts: 77

Original Poster
Rep: Reputation: Disabled
Unfortunately it looks like that didn't solve the issue. Although it works fine from my phone, the exact same settings on my laptop give errors. Receiving email works fine but sending does not. A fellow employee has the exact same issue sending emails from his phone.
Normally 143 is receiving and 587 is sending. I am using the latest version of Thunderbird.

This is the error I get:
Quote:
An error occurred while sending mail. The mail server responded: Authentication required for connections on TCP port 587. Please check the message recipient _______ and try again.
When I switch the outgoing port to 25, it says:
Quote:
An error occurred while sending mail. The mail server responded: Relaying not allowed - REASON. Please check the message recipient _______ and try again.
When I try to send an email to myself:
Quote:
An error occurred while sending mail. The mail server responded: 5.7.1 Mail (m-40439-54547) appears to be unsolicited - forged Helo: '[127.0.0.1' - resend with ASSP-notspam appended to subject and contact _________ for resolution. Please check the message and try again.
When I try to send an email to someone else in the corporation:
Quote:
An error occurred while sending mail: The mail server sent an incorrect greeting: 4.7.1 Please try again later.
All email addresses work fine inside the network.
Sorry if I seem like a noob. Our manager got laid off and I'm not a Linux expert by any means.
Thanks in advance.

Last edited by Toasterman; 07-03-2014 at 08:50 AM.
 
Old 07-03-2014, 09:27 AM   #7
canussie
Member
 
Registered: Jun 2014
Location: Calgary
Posts: 50

Rep: Reputation: 7
When you try to send mail externally what does /var/log/maillog display?
 
Old 07-03-2014, 10:14 AM   #8
Toasterman
Member
 
Registered: Oct 2013
Posts: 77

Original Poster
Rep: Reputation: Disabled
I can't even find an entry for my email address. I've repeatedly opened the log file after I attempt to send one but an entry with my email address is nowhere to be found. There are a lot of "unknown" entries though:

Jul 3 11:02:22 mail postfix/smtpd[11544]: connect from unknown[127.0.0.1]
Jul 3 11:02:22 mail postfix/smtpd[11542]: 35BADBE2ED7: client=unknown[127.0.0.1]
Jul 3 11:02:22 mail postfix/smtpd[11542]: lost connection after RCPT from unknown[127.0.0.1]
Jul 3 11:02:22 mail postfix/smtpd[11542]: disconnect from unknown[127.0.0.1]
Jul 3 11:02:23 mail postfix/smtpd[11543]: connect from unknown[127.0.0.1]

Thanks in advance.

Last edited by Toasterman; 07-03-2014 at 10:15 AM.
 
Old 07-03-2014, 10:44 AM   #9
canussie
Member
 
Registered: Jun 2014
Location: Calgary
Posts: 50

Rep: Reputation: 7
Well that sounds like the mail isn't even getting through to your mail server. Maybe a firewall is blocking the traffic? If you run a tcpdump on the mail server

$tcpdump port 25

and try to send some mail, do you see traffic?
 
Old 07-03-2014, 10:57 AM   #10
YankeePride13
Member
 
Registered: Aug 2012
Distribution: Ubuntu 10.04, CentOS 6.3, Windows 7
Posts: 262

Rep: Reputation: 55
Did you add your IP to /etc/mail/access ?
 
Old 07-03-2014, 12:19 PM   #11
Toasterman
Member
 
Registered: Oct 2013
Posts: 77

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by canussie View Post
Well that sounds like the mail isn't even getting through to your mail server. Maybe a firewall is blocking the traffic? If you run a tcpdump on the mail server

$tcpdump port 25

and try to send some mail, do you see traffic?
It responds with:
-bash: tcpdump: command not found

Quote:
Did you add your IP to /etc/mail/access ?
I don't have a /etc/mail/access file but I do have /etc/postfix/access
Would this be an internal or external IP address, and would this need a restart to postfix?
 
Old 07-03-2014, 12:37 PM   #12
YankeePride13
Member
 
Registered: Aug 2012
Distribution: Ubuntu 10.04, CentOS 6.3, Windows 7
Posts: 262

Rep: Reputation: 55
I cannot speak with authority on this as I have not run a postfix mail server. I am familiar with sendmail and run a sendmail server, however. In sendmail, you have to specify which IP addresses will be relaying through the server in /etc/mail/access. Any other IP addresses attempting to send mail through the server will be rejected. (edit) The address that you would add would be whatever address you are trying to send mail directly from.

---------- Post added 07-03-14 at 01:38 PM ----------

Quote:
Originally Posted by Toasterman View Post
It responds with:
-bash: tcpdump: command not found
Sounds like you don't have /usr/sbin in your PATH. Call it directly.

Last edited by YankeePride13; 07-03-2014 at 12:39 PM.
 
Old 07-03-2014, 01:13 PM   #13
Toasterman
Member
 
Registered: Oct 2013
Posts: 77

Original Poster
Rep: Reputation: Disabled
Thank you everyone for your suggestions but I actually found what I need in the ASSP client interface. There is a section called (acceptAllMail) which is where I whitelist certain IP address for external usage. I just tested my laptop's IP address and it worked perfectly.

Obviously I don't want this system to be totally 100% open for security reasons. Since the majority of these people will be accessing their email outside via smartphones, does anyone know the IP address blocks for AT&T Mobility, Verizon Wireless, T-Mobile, Sprint, and MetroPCS? Thanks in advance.
 
  


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
[SOLVED] How to convert OSX 10.5 Mini Server's Mail & mailboxes to CentOS linux server mail? tstfortruth Linux - Server 4 06-23-2012 01:33 AM
mail server migration: howto deliver locally AND forward mail to new server pedrobl Linux - Server 1 01-21-2011 11:12 PM
web mail site opening problem gaurang172000 Linux - Networking 3 02-04-2006 08:39 AM
Opening netscape mail in Outlook express tumi Linux - Newbie 2 07-28-2004 08:44 AM
How do I make Evolution recieve mail upon opening? guitargeek Linux - Software 0 04-16-2003 07:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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