LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 02-19-2009, 11:43 AM   #1
rkibui
LQ Newbie
 
Registered: Feb 2009
Posts: 3

Rep: Reputation: 0
POSTFIX Email Can't Receive External Email


Hi Guys,
I am newbie in linux. I installed postfix using dovecot on ubuntu 8.10. I can send emails internally and externally but i cant receive any emails from an external source (eg. gmail). My ISP blocks port 25 and they told me in order for a mail server to work properly, it also needs to have a static ip (do I need to do this)? I have disabled the firewall and spamassassin isnt installed on my system. There are no message filters.
I have followed the docs available online but i cant seem to make any headway. Does anyone know how to make postfix use a specific port say 587? How can I check which port postfix is using to receive email?

kind regards

Richard
 
Old 02-20-2009, 04:08 AM   #2
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
Isnt postfix a SMTP server that is used to send the mails?
 
Old 02-20-2009, 11:44 AM   #3
rkibui
LQ Newbie
 
Registered: Feb 2009
Posts: 3

Original Poster
Rep: Reputation: 0
It is Wietse Venema's mailer that started life at IBM research as an alternative to the widely-used Sendmail program. more info is located at http://www.postfix.org/start.html.

I have got more info on my problem, this is error i'm getting when i try to send myself an email "The email account that you tried to reach does not exist."
 
Old 02-20-2009, 10:59 PM   #4
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
That error is self explanatory and you should check with it first. I know what postfix is but I do not have much experience with mail servers.
 
Old 02-20-2009, 11:15 PM   #5
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Are you trying to send or receive on an alternative port? In either case, how are other mailservers going to know what port to use?

Have you asked your ISP if they will open inbound port 25 traffic for you, and you should then be able to relay outbound mail through their mailserver (which isn't a bad idea anyway)?

A simple
Code:
netstat -nalp  | grep master | grep "LISTEN "
should tell you what postfix is listening on

To make postfix listen on a different port, a line like
Code:
IP_address:port      inet  n       -       n       -       -       smtpd
in place of
Code:
smtp      inet  n       -       n       -       -       smtpd
in master.cf will work. You may be able to simply replace smtp with the port number in the second version (without the IP), but I've never tried it.

Simply sending on a different port will achieve nothing, since other servers won't be listening. if you want to relay through a specific server, you can use
Code:
relayhost mailserver.example.com:port
in main.cf

Last edited by billymayday; 02-20-2009 at 11:32 PM.
 
Old 02-22-2009, 05:45 AM   #6
rkibui
LQ Newbie
 
Registered: Feb 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Hello billymayday,
Thanks for the info.
I figured as much, if incoming port 25 is being blocked by the isp it wont matter which other port i use to send (i thought there was a work around). I tried out netstat -nalp | grep master | grep "LISTEN " and it is listening on 25. I will have to talk to my isp and see whether they can open inbound port 25 for me or try the relayhost option.

Thanks for your info, much appreciated

kind regards

Richard
 
  


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
Beating my head against the email wall - cannot receive email dazed-and-confused Linux - Server 16 09-02-2008 05:14 AM
POSTFIX Email Can't Receive External Email carlosinfl Linux - Server 2 10-15-2007 06:00 AM
not able to receive email, postfix inq Robin01 Linux - General 6 01-07-2005 07:16 AM
Exim cannot receive email from external address davidas Linux - Software 1 04-23-2004 03:17 AM
cannot receive email from mail server installed with postfix charles168 Linux - Software 4 08-15-2003 02:06 PM

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

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