LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-02-2006, 12:51 AM   #1
purelithium
Member
 
Registered: Oct 2005
Location: Canada
Distribution: Mandriva 2006.0
Posts: 390

Rep: Reputation: 30
postfix - What do I do?


Ok, I'm quite lost. I've installed the package for postfix and have tried to configure it properly, but I can't get it to send out an e-mail! all the e-mails it tries to send all get timed out on the recieving server's end. How do I correct this?

EDIT: Oh, and what is this sasl thing? Is that like SSL encryption? do I need to incorporate sasl? I don't think I need to have any security on this, as it's only going to be used to relay e-mails from my wordpress site to users.

Last edited by purelithium; 02-02-2006 at 12:57 AM.
 
Old 02-02-2006, 08:31 PM   #2
jcliburn
Member
 
Registered: Dec 2003
Location: Mississippi, USA
Distribution: Fedora
Posts: 435

Rep: Reputation: 33
Do you have port 25 filtered by iptables on the mail server? If so, execute the following as root.

/sbin/iptables -A INPUT -p tcp --dport 25 -j ACCEPT
 
Old 02-02-2006, 08:54 PM   #3
purelithium
Member
 
Registered: Oct 2005
Location: Canada
Distribution: Mandriva 2006.0
Posts: 390

Original Poster
Rep: Reputation: 30
If you are referencing a software firewall, then no I don't have one running I use a double hardware firewall. Yes, port 25 is forwarded, and i am able to connect to it via telnet.

Postfix accepts the e-mails, it just has not delivered them. whenever it tries to contact the server that hosts the recipient's e-mail address, the connection times out. specific error here(from webmin):

connect to gsmtp83.google.com[66.249.83.27]: Connection timed out

This error was attatched to the message and I get mailer-daemon messages attempting to go out as well, but again they are timed out.

What's wrong?
 
Old 02-02-2006, 09:17 PM   #4
purelithium
Member
 
Registered: Oct 2005
Location: Canada
Distribution: Mandriva 2006.0
Posts: 390

Original Poster
Rep: Reputation: 30
I've done a little reading and have seen many(if not all) setups use a Relay server, or "relayhost" which basically redirects the mail that the postfix server recives to an external SMTP server. Is this all that postfix does? can it not deliver messages directly by itself? If not, I can't use this.... I need a completly independent SMTP server that can directly deliver messages, as i don't have an external SMTP server to relay messages for me.
 
Old 02-02-2006, 09:42 PM   #5
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Postfix should be able to do what you want as it's a complete MTA. It looks to me like your external port 25 connections are being blocked somewhere? Perhaps by your ISP? Maybe your server got put on a spam blacklist? Can you try, on your machine, to telnet to port 25 (smtp) on some of the servers it's trying to contact and seeif you get through? if not, you're being blocked somewhere.
 
Old 02-02-2006, 09:48 PM   #6
purelithium
Member
 
Registered: Oct 2005
Location: Canada
Distribution: Mandriva 2006.0
Posts: 390

Original Poster
Rep: Reputation: 30
Hmm... that's probably what's wrong. I'm with Bell Sympatico, so they probably don't want people using their home connections as servers *laugh*

Is there a way to configure postfix to use another port besides 25, or am I pretty much screwed?

Well I just checked, I can contact one of the hosts, but i don't get any reply. should I?

The other one doesn't connect. Says it doesn't exist.

EDIT: Well maybe it's not a connection, it's a timeout just like all the e-mails.

Last edited by purelithium; 02-02-2006 at 10:07 PM.
 
Old 02-04-2006, 12:23 AM   #7
shaunw
Member
 
Registered: Dec 2005
Posts: 77

Rep: Reputation: 15
postfix

As far as I am aware (I'm a relative beginner) postfix can
deliver local mail. It can also exchange mail with other
internet servers that are running a mail exchange server. If
you want to sent internet mail the easiest way is to get an
external email address. Set this up on your linux machine as
a relay address and set up masquerading so that all internet
emails appear to come from this address. You may also have to
turn off email DNS MX lookup.

 
Old 02-04-2006, 03:26 AM   #8
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Edit /etc/postfix/main.cf and where you see the line relay host enter;

relayhost = [isp_mail_server_outbox]

where isp_mail_server_outbox is the address that you use to send mail with your email client in the form outmail.isp.com

You may see small errors like server won't verify itself etc but the mail is still sent. There is one caveat to this and that is some mail servers filter mail coming from sources that have no official DNS source and the mail does not get to the recipient because it is filtered as spam. This happens in one of the big isp's in Australia.
 
Old 02-04-2006, 01:43 PM   #9
purelithium
Member
 
Registered: Oct 2005
Location: Canada
Distribution: Mandriva 2006.0
Posts: 390

Original Poster
Rep: Reputation: 30
I understand that, but my ISP nees ssl and regular authentication. how do I enter username/password for that "relay" server and enable it to use SSL?
 
Old 02-04-2006, 02:45 PM   #10
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Quote:
Originally Posted by purelithium
I understand that, but my ISP nees ssl and regular authentication. how do I enter username/password for that "relay" server and enable it to use SSL?
Have a look at this page which shows you how to set this up.
Alternatively you would have to look at setting up your own DNS.

Last edited by TigerOC; 02-04-2006 at 02:46 PM.
 
  


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
Postfix send mail problem(In RH9, kernal 2.4.20, postfix 2.1.5) minor Linux - General 6 09-23-2019 10:09 PM
Postfix poortl9109 Linux - Software 8 06-23-2004 08:08 PM
can't start postfix ./postfix status error jules_fraser Linux - Software 3 12-06-2003 06:33 PM
move postfix mails from server to another postfix server onetwo Linux - Software 2 03-18-2003 02:22 PM
postfix????? graystarr Linux - Software 1 03-10-2003 12:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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