Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Postfix not sending mail
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
Novack
n00b
n00b


Joined: 12 Apr 2003
Posts: 11
Location: Finland

PostPosted: Sat Apr 12, 2003 1:03 pm    Post subject: Postfix not sending mail Reply with quote

Hi,

I have a problem with Postfix when sending mail. PINE gives a "SMTP Greeting failure: 421 SMT Connection went away". All the docs I've read say that sending mail should work automatically after "emerge postfix" and starting the server.

When I try "telnet localhost 25":
Code:

telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.


I also have a Mandrake box, where I tried to install Postfix just for testing purposes. It sent the mail fine. When I telnetted port 25 on the Mandrake box it outputted:
Code:

telnet localhost 25
Trying 127.0.0.1...
Connected to localhost (127.0.0.1).
Escape character is '^]'.
220 novacomp.localdomain ESMTP Postfix (2.0.6) (Mandrake Linux)

500 Error: bad syntax

The last error is the result of pressing the enter key after connection opened. The postfix on my gentoo box gives no such error.
Back to top
View user's profile Send private message
s1th
n00b
n00b


Joined: 30 Mar 2003
Posts: 31
Location: Almere, Netherlands

PostPosted: Wed Apr 16, 2003 7:05 pm    Post subject: Re: Postfix not sending mail Reply with quote

Novack wrote:
Hi,

I have a problem with Postfix when sending mail. PINE gives a "SMTP Greeting failure: 421 SMT Connection went away". All the docs I've read say that sending mail should work automatically after "emerge postfix" and starting the server.

When I try "telnet localhost 25":
Code:

telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.



Since no smtpd banner is proving this is actually the Postfix smtp listener, does a `ps -ef | grep postfix` actually show you Postfix is even running?
How did you configure pine to sent out email?

Quote:

I also have a Mandrake box, where I tried to install Postfix just for testing purposes. It sent the mail fine. When I telnetted port 25 on the Mandrake box it outputted:
Code:

telnet localhost 25
Trying 127.0.0.1...
Connected to localhost (127.0.0.1).
Escape character is '^]'.
220 novacomp.localdomain ESMTP Postfix (2.0.6) (Mandrake Linux)

500 Error: bad syntax

The last error is the result of pressing the enter key after connection opened. The postfix on my gentoo box gives no such error.


What did the logs tell you when you issued a `postfix start` or /etc/init.d/postfix start?
It might help if you run a `postfix check` first before a 'start'.

HTH[/quote]
_________________
Why did it happen ? BOFH Excuse:
Zombie processes haunting the computer
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Wed Apr 16, 2003 9:48 pm    Post subject: couple of things it could be Reply with quote

1. Did you you do any sort of configuration to /etc/postfix/main.cf? If not you'll want to add the IP's of the local server to the mynetworks variable. 127.0.0.1 needs to be allowed if nothing else.

2. Run a test from the command line make sure it's a Postfix problems and not the client. I suggest something like this:

echo "Subject: Testing #214" | /usr/sbin/sendmail -F yourusername -f your username test@addresshere.com

kashani
_________________
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Back to top
View user's profile Send private message
Novack
n00b
n00b


Joined: 12 Apr 2003
Posts: 11
Location: Finland

PostPosted: Tue Apr 22, 2003 3:41 pm    Post subject: Still doesn't work Reply with quote

The test worked fine and it sent the mail (Postfix check didn't give any errors).

I didn't configure PINE at all (because it worked fine on the Mandrake box without configuring. I checked it's config, they were all "not set" and it worked fine. Postfix on the Mandrake box also works if I configure it to use localhost as it's smtp-server).

If I configure "localhost" as the smtp-server on my Gentoo box, PINE will timeout when trying to send mail (Connection failed to localhost,25: Connection timed out). If I don't configure anything, it will give the "SMTP Connection went away" error.
Back to top
View user's profile Send private message
b0fh
Guru
Guru


Joined: 16 Jun 2003
Posts: 426

PostPosted: Tue Jul 15, 2003 2:13 pm    Post subject: Reply with quote

I've got the same error here, the test works fine, but pine gives me an error. Did you solve this some way?
Back to top
View user's profile Send private message
b0fh
Guru
Guru


Joined: 16 Jun 2003
Posts: 426

PostPosted: Tue Jul 15, 2003 3:10 pm    Post subject: Reply with quote

I found the error with sending mail and pine: Just add "sendmail-path=/usr/sbin/sendmail -oem -t -oi" to your .pinerc. Now I've got another problem: I'm sending myself a mail, but it doesn't appear in my inbox, it's still in the mail queue (mailq). What to do?
Back to top
View user's profile Send private message
Novack
n00b
n00b


Joined: 12 Apr 2003
Posts: 11
Location: Finland

PostPosted: Sat Jul 19, 2003 7:21 pm    Post subject: Reply with quote

I fixed my mail sending problem by doing a symbolic link
/bin/mail -> /usr/sbin/sendmail

It can also be fixed by editing /etc/services.
Find the line:

smtp 25/tcp mail
and change it to
smtp 25/tcp sendmail

(This way of fixing, compared to modifying .pinerc, has the nice side effect in that you can use any mail software (like mozilla mail on another computer in your network) by just using your server as the SMTP-server).
This could also fix your problem with the mailboxes.
Back to top
View user's profile Send private message
fimblo
Guru
Guru


Joined: 19 Feb 2003
Posts: 306
Location: European Union, Stockholm

PostPosted: Tue Aug 05, 2003 10:52 am    Post subject: Reply with quote

I just told pine's smtp-server field to localhost. works fine if you have a MTA on your puter.
_________________
http://blahonga.yanson.org - little geekblog
http://blahona.yanson.org/howtos/livecd - yet another livecd howto
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