View previous topic :: View next topic |
Author |
Message |
Novack n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 12 Apr 2003 Posts: 11 Location: Finland
|
Posted: Sat Apr 12, 2003 1:03 pm Post subject: Postfix not sending mail |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
s1th n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/52990176742fc508ebb3db.gif)
Joined: 30 Mar 2003 Posts: 31 Location: Almere, Netherlands
|
Posted: Wed Apr 16, 2003 7:05 pm Post subject: Re: Postfix not sending mail |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
kashani Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/9629732313ee51df8c5935.jpg)
Joined: 02 Sep 2002 Posts: 2032 Location: San Francisco
|
Posted: Wed Apr 16, 2003 9:48 pm Post subject: couple of things it could be |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Novack n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 12 Apr 2003 Posts: 11 Location: Finland
|
Posted: Tue Apr 22, 2003 3:41 pm Post subject: Still doesn't work |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
b0fh Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/764851073415e70bdd3345.jpg)
Joined: 16 Jun 2003 Posts: 426
|
Posted: Tue Jul 15, 2003 2:13 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
b0fh Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/764851073415e70bdd3345.jpg)
Joined: 16 Jun 2003 Posts: 426
|
Posted: Tue Jul 15, 2003 3:10 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Novack n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 12 Apr 2003 Posts: 11 Location: Finland
|
Posted: Sat Jul 19, 2003 7:21 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
fimblo Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 19 Feb 2003 Posts: 306 Location: European Union, Stockholm
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|