Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
postfix wont send mail anywhere but to the localhost
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
hetman
n00b
n00b


Joined: 05 May 2003
Posts: 29
Location: Canada

PostPosted: Thu Feb 26, 2004 6:21 am    Post subject: postfix wont send mail anywhere but to the localhost Reply with quote

i noticed i get this error too, i think it has something to do with it.
Code:

 *  Service 'postfix' already provide 'mta'!;
 *  Not adding service 'postfix.rc6'...           
Back to top
View user's profile Send private message
Ijon Tichy
Tux's lil' helper
Tux's lil' helper


Joined: 25 Feb 2004
Posts: 80
Location: Seattle, WA

PostPosted: Thu Feb 26, 2004 6:32 am    Post subject: Reply with quote

What do you see in your logs when you start postfix?

For example:

Code:

Feb 25 22:26:40 hastur postfix/postfix-script: starting the Postfix mail system
Feb 25 22:26:40 hastur postfix/master[1109]: daemon started -- version 2.0.16


Also, if it's starting up at all, do your logs show anything when you try to send mail somewhere other than localhost? Errors, rejections, etc.?
Back to top
View user's profile Send private message
hetman
n00b
n00b


Joined: 05 May 2003
Posts: 29
Location: Canada

PostPosted: Thu Feb 26, 2004 6:36 am    Post subject: Reply with quote

it sends mail fine to local users. but any outgoing mail gets just queued up and never delivered.
Back to top
View user's profile Send private message
Ijon Tichy
Tux's lil' helper
Tux's lil' helper


Joined: 25 Feb 2004
Posts: 80
Location: Seattle, WA

PostPosted: Thu Feb 26, 2004 6:16 pm    Post subject: Reply with quote

Hard to say. I think more info is needed. What's the output of your 'mailq' command look like?

Also, what does syslog show when you send mail (both to a local recipient and to a remote address)?

The mailx command (net-mail/mailx) makes testing easy.

Code:

date | /bin/mailx -s "testing" harold


And local delivery would look something like this:

Code:

Feb 26 09:58:43 hastur postfix/pickup[14141]: 6FCC3706A: uid=0 from=<root>
Feb 26 09:58:43 hastur postfix/cleanup[14217]: 6FCC3706A: message-id=<20040226175843.6FCC3706A@hastur.harold.com>
Feb 26 09:58:43 hastur postfix/qmgr[1111]: 6FCC3706A: from=<root@hastur.harold.com>, size=341, nrcpt=1 (queue active)
Feb 26 09:58:46 hastur postfix/local[14219]: 6FCC3706A: to=<harold@hastur.harold.com>, orig_to=<harold>, relay=local, delay=3, status=sent ("|/usr/bin/procmail -a "$EXTENSION"")


If you're running off of a connection from a big provider (like Comcast), you'll probably have to set up postfix to relay through their mail server. A lot of people will reject mail that comes directly from an ISP's customer IP to cut down on spam. So, I've got my postfix set up to relay all outgoing mail through smtp.comcast.net:

Code:

relayhost = smtp.comcast.net


And make sure you've got your mydestinations set up so postfix recognizes local mail or it'll try to relay everything through your relayhost.

So, with all that set up, outgoing mail looks like:

Code:

Feb 26 10:06:01 hastur postfix/pickup[14245]: A538B70BB: uid=0 from=<root>
Feb 26 10:06:01 hastur postfix/cleanup[14250]: A538B70BB: message-id=<20040226180601.A538B70BB@hastur.harold.com>
Feb 26 10:06:01 hastur postfix/qmgr[1111]: A538B70BB: from=<root@hastur.harold.com>, size=334, nrcpt=1 (queue active)
Feb 26 10:06:02 hastur postfix/smtp[14252]: A538B70BB: to=<harold@elsewhere.net>, relay=smtp.comcast.net[204.127.198.27], delay=1, status=sent (250 ok ; id=2004022618063501500o9pgce)
Back to top
View user's profile Send private message
hetman
n00b
n00b


Joined: 05 May 2003
Posts: 29
Location: Canada

PostPosted: Sun Feb 29, 2004 6:33 am    Post subject: Reply with quote

thanks for the help. sorry about the delay, i was away for a few days.
well i tried mailx, nice app btw, and basically email from my box doesnt get thru. connection time out. i tried 3 different addresses to send to, all just time out. not sure why, oh well. but if i relay thru my isp's smtp then it goes thru. i'll just stick with that for now.
Back to top
View user's profile Send private message
hetman
n00b
n00b


Joined: 05 May 2003
Posts: 29
Location: Canada

PostPosted: Sun Feb 29, 2004 6:34 am    Post subject: Reply with quote

i also tried exim to see if that one worked, same results.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum