View previous topic :: View next topic |
Author |
Message |
hetman n00b
Joined: 05 May 2003 Posts: 29 Location: Canada
|
Posted: Thu Feb 26, 2004 6:21 am Post subject: postfix wont send mail anywhere but to the localhost |
|
|
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 |
|
|
Ijon Tichy Tux's lil' helper
Joined: 25 Feb 2004 Posts: 80 Location: Seattle, WA
|
Posted: Thu Feb 26, 2004 6:32 am Post subject: |
|
|
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 |
|
|
hetman n00b
Joined: 05 May 2003 Posts: 29 Location: Canada
|
Posted: Thu Feb 26, 2004 6:36 am Post subject: |
|
|
it sends mail fine to local users. but any outgoing mail gets just queued up and never delivered. |
|
Back to top |
|
|
Ijon Tichy Tux's lil' helper
Joined: 25 Feb 2004 Posts: 80 Location: Seattle, WA
|
Posted: Thu Feb 26, 2004 6:16 pm Post subject: |
|
|
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 |
|
|
hetman n00b
Joined: 05 May 2003 Posts: 29 Location: Canada
|
Posted: Sun Feb 29, 2004 6:33 am Post subject: |
|
|
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 |
|
|
hetman n00b
Joined: 05 May 2003 Posts: 29 Location: Canada
|
Posted: Sun Feb 29, 2004 6:34 am Post subject: |
|
|
i also tried exim to see if that one worked, same results. |
|
Back to top |
|
|
|