LinuxQuestions.org
Help answer threads with 0 replies.
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-23-2013, 11:53 PM   #1
pullmyhair
LQ Newbie
 
Registered: Jun 2013
Posts: 3

Rep: Reputation: Disabled
Unhappy Can't receive external mail using sendmail


Hi Gurus,

I need some help configuring sendmail to be able to receive external mail from say "gmail".

I've already tried opening iptables:
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 25 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 25 -j ACCEPT

and I edited the sendmail.mc to:

dnl # DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl


When I run netstat i get:

netstat -nl

tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN

I don't get why i can't receive any emails from the outside still when i check "mail" i have none. If i try to scan port 25 from the outside also, i get that port 25 is not responding (maybe its because sendmail is already using it?) I also tried adding an addr field in sendmail.mc to include my domain ip but to no avail so i took it off and now it's 0.0.0.0.
The DNS Ip addresses are also in the resolv.conf file so I don't think thats the problem.

I'd be glad if someone could help me out I've been pulling my hair out all day

Last edited by pullmyhair; 06-24-2013 at 12:06 AM.
 
Old 06-24-2013, 04:52 AM   #2
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
Why you are not allowing all incoming and outgoing traffic for port 25

iptables -I INPUT -p tcp --dport 25 -j ACCEPT
iptables -I OUTPUT -p tcp --sport 25 -j ACCEPT

Thanks
 
Old 06-24-2013, 06:57 AM   #3
pullmyhair
LQ Newbie
 
Registered: Jun 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
I tried it but it still doesn't work.

I thought maybe it was selinux related but I don't think so..

Ah the joy..
 
Old 06-24-2013, 07:38 AM   #4
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
If you are not able to telnet your ip on port 25 from outside, Then it could be OS Firewall or network firewall . Since OS Firewall is ok so check with network firewall.

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
Sendmail - Can receive external, no local mail though macdonalder Linux - Software 2 11-18-2005 03:04 AM
sendmail server unable to receive external mail goonfui_wong Linux - Networking 7 07-01-2005 02:15 AM
Cannot receive inbound external emails with Sendmail jimwillsher Linux - Newbie 12 02-09-2004 12:50 PM
Can't receive mail with sendmail rufassa Linux - Networking 7 11-05-2003 09:30 PM
Can't get sendmail to receive mail schurma Linux - Networking 4 04-16-2001 06:03 PM

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

All times are GMT -5. The time now is 04:10 AM.

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