Re: postfix [was Re: Sendmail vs Exim vs Others]
Hello. I'd like to help! ... not a clue if this fits your requirements or whether it is indeed helpful. (Its meant to be my benefit to the group, rather of awaiting replies to my own inquiries ...) I use following setup in postfix, which I think is much greater then exim. (exim and ppp/dialin gave me too much problem I could not cope, also postfix's much easier to setup!) - main.cf - [...] mydestination = csav-3, localhost.localdomain, localhost [...] append_dot_mydomain = no relayhost = smtp.mailhost.net ## any smtp host defer_transports = smtp disable_dns_lookups = yes sender_canonical_maps = hash:/etc/postfix/canonical smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_security_options = canonicals only entry: --- #user email gerd[EMAIL PROTECTED] last but not least: /etc/postfix/sasl_passwd (only one line) --- ## a bit confused: whole email as passwd like gmx must have / could be also somekind of alphanumerical one, for instance passwd123 smtp.mailhost.net[EMAIL PROTECTED]:fit9084 that's it! you have to rehash the canonical and sas_passwd to have them as true databases workable for postfix. postmap [filename] will do the job. Please I am not sure, if you would ever get to this point beg one else to answer this (long ago I set this up, i forgot) best regards, alex -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: postfix [was Re: Sendmail vs Exim vs Others]
Nano Nano wrote: My first test message to the outside world bounced with: [EMAIL PROTECTED]: host smtp.comcast.net[216.148.227.125] said: 550 [PERMFAIL] comcast.net requires valid sender (in reply to RCPT TO command) exim always added my Sender header for me. I presume comcast is rejecting your email because it doesn't like the hostname given in the HELO/EHLO command. It saying 'comcast.net requires valid sender' sounds like it. What do 'postconf myorigin' and 'postconf myhostname' say? You (or rather comcast) want myorigin to be a hostname that's in the Internet DNS. Tobias -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: postfix [was Re: Sendmail vs Exim vs Others]
On Mon, Feb 02, 2004 at 05:39:54AM +0100, Tobias Reckhard wrote: Nano Nano wrote: My first test message to the outside world bounced with: [EMAIL PROTECTED]: host smtp.comcast.net[216.148.227.125] said: 550 [PERMFAIL] comcast.net requires valid sender (in reply to RCPT TO command) exim always added my Sender header for me. I presume comcast is rejecting your email because it doesn't like the hostname given in the HELO/EHLO command. It saying 'comcast.net requires valid sender' sounds like it. What do 'postconf myorigin' and 'postconf myhostname' say? You (or rather comcast) want myorigin to be a hostname that's in the Internet DNS. # postconf myorigin myorigin = $myhostname # postconf myhostname myhostname = desk Should I just change mail name during postfix debconf questions to comcast.net ?? Mail will then appear to come from [EMAIL PROTECTED] or [EMAIL PROTECTED] which are not real emails. It looks like I need to modify virtual(5) or canonical(5) but I cannot grok the examples from postfix-doc. aliases(5) seems to be okay; it's correctly delivering local root mail to my account. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: postfix [was Re: Sendmail vs Exim vs Others]
Nano Nano wrote: # postconf myorigin myorigin = $myhostname # postconf myhostname myhostname = desk OK. Some hosts will reject your host's HELO/EHLO, but the comcast thing was probably due to your MAIL FROM: address' domain not being in the Internet DNS. Should I just change mail name during postfix debconf questions to comcast.net ?? I don't know, honestly, I always select 'No configuration' and configure it myself, so I don't know what effect the individual debconf answers have. Mail will then appear to come from [EMAIL PROTECTED] or [EMAIL PROTECTED] which are not real emails. I don't know about your setup. If you're just sending emails out with Postfix and not receiving any (from the Internet) and using a smarthost (aka relayhost with Postfix), you only need to make sure you use HELO/EHLO parameters that your relayhost will accept. The domain in your MAIL FROM: address should exist in the Internet DNS, otherwise many sites will reject your emails (or will waste resources when trying to send bounces to you). You should use your email address here. It looks like I need to modify virtual(5) or canonical(5) but I cannot grok the examples from postfix-doc. aliases(5) seems to be okay; it's correctly delivering local root mail to my account. I don't think you want to modify virtual. Canonical perhaps. Explain your setup and what you want to do and maybe we can help. You can also try the postfix-users mailing list. Tobias -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: postfix [was Re: Sendmail vs Exim vs Others]
In article [EMAIL PROTECTED], Nano Nano [EMAIL PROTECTED] wrote: On Sat, Jan 31, 2004 at 01:21:46AM +0100, Vincent Lefevre wrote: On 2004-01-30 14:57:37 -0800, Nano Nano wrote: Aha, that explains why the 2nd message worked: I have a mutt rule that adds the correct From for list-replies. I guess I'll have to make sure Mutt adds a valid From or Sender in all cases. I'll have to make sure all mail-generating programs do that: is there a facility in Debian to assist with that, or will I need to administer Identities in each MUA individually? Isn't postfix able to do email rewriting? I guess but it apparently doesn't do it OOB. I never liked how Exim leaked my AccountFullName+EtcEmailAddressesEmail identity in the Sender when I was using an alternate valid From email and nickname (like here). You can configure exim not to do that if you don't like it. Mike. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: postfix [was Re: Sendmail vs Exim vs Others]
Hi, * Nano Nano wrote (2004-01-30 07:01): My first test message to the outside world bounced with: [EMAIL PROTECTED]: host smtp.comcast.net[216.148.227.125] said: 550 [PERMFAIL] comcast.net requires valid sender (in reply to RCPT TO command) exim always added my Sender header for me. What to do? What's in the log for this message? Thorsten -- Endorsing products is the American way of expressing individuality. - Calvin pgp0.pgp Description: PGP signature
Re: postfix [was Re: Sendmail vs Exim vs Others]
On Fri, Jan 30, 2004 at 08:19:36AM +0100, Thorsten Haude wrote: What's in the log for this message? from /var/log/mail.log: Jan 29 23:42:00 desk postfix/smtp[4117]: 8AEF514756: to=[EMAIL PROTECTED], relay=smtp.comcast.net[204.127.198.27], delay=0, status=bounced (host smtp.comcast.net[204.127.198.27] said: 550 [PERMFAIL] comcast.net requires valid sender (in reply to RCPT TO command)) Here's the text of the bounced message: Reporting-MTA: dns; desk Arrival-Date: Thu, 29 Jan 2004 23:42:00 -0800 (PST) Final-Recipient: rfc822; [EMAIL PROTECTED] Action: failed Status: 5.0.0 Diagnostic-Code: X-Postfix; host smtp.comcast.net[204.127.198.27] said: 550 [PERMFAIL] comcast.net requires valid sender (in reply to RCPT TO command) // It apparently wants me to add an Sender header. Mutt doesn't do it. Exim always did it for me, using the form: [Account Full Name] email from /etc/email-addresses matching account I never liked that. I need to tell postfix something to say as Sender. How? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: postfix [was Re: Sendmail vs Exim vs Others]
On Thu, Jan 29, 2004 at 11:52:13PM -0800, Nano Nano wrote: On Fri, Jan 30, 2004 at 08:19:36AM +0100, Thorsten Haude wrote: What's in the log for this message? from /var/log/mail.log: Jan 29 23:42:00 desk postfix/smtp[4117]: 8AEF514756: to=[EMAIL PROTECTED], relay=smtp.comcast.net[204.127.198.27], delay=0, status=bounced (host smtp.comcast.net[204.127.198.27] said: 550 [PERMFAIL] comcast.net requires valid sender (in reply to RCPT TO command)) Strangeness! I sent the message I am replying to via Postfix (before I remembered to switch back to Exim), and it worked. The message I am sending now will be with Exim. Maybe postfix was working okay after all. The message that bounced was: From: Me [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: test Date: Thu, 29 Jan 2004 23:42:00 -0800 User-Agent: Mutt/1.5.5.1+cvs20040105i Message-ID: [EMAIL PROTECTED] bleh //end One worked, one didn't. Probably tripped a virus filter with the test message. So I still need to add the Sender automatically with Postfix, and I don't know how. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: postfix [was Re: Sendmail vs Exim vs Others]
Moin, * Nano Nano wrote (2004-01-30 08:52): On Fri, Jan 30, 2004 at 08:19:36AM +0100, Thorsten Haude wrote: What's in the log for this message? from /var/log/mail.log: Jan 29 23:42:00 desk postfix/smtp[4117]: 8AEF514756: to=[EMAIL PROTECTED], relay=smtp.comcast.net[204.127.198.27], delay=0, status=bounced (host smtp.comcast.net[204.127.198.27] said: 550 [PERMFAIL] comcast.net requires valid sender (in reply to RCPT TO command)) (Oops.) Don't be so frugal, what are the other entries for this mail? Thorsten -- Every person shall have the right freely to inform himself without hindrance from generally accessible sources. - German Grundgesetz, Article 5, Sec. 1 pgp0.pgp Description: PGP signature
Re: postfix [was Re: Sendmail vs Exim vs Others]
Moin, * Nano Nano wrote (2004-01-30 08:52): On Fri, Jan 30, 2004 at 08:19:36AM +0100, Thorsten Haude wrote: What's in the log for this message? from /var/log/mail.log: Jan 29 23:42:00 desk postfix/smtp[4117]: 8AEF514756: to=[EMAIL PROTECTED], relay=smtp.comcast.net[204.127.198.27], delay=0, status=bounced (host smtp.comcast.net[204.127.198.27] said: 550 [PERMFAIL] comcast.net requires valid sender (in reply to RCPT TO command)) Nicht so sparsam, wie sehen die anderen Einträge für diese Mail aus? Thorsten -- Everyone has the right to freedom of expression. This right shall include freedom to hold opinions and to receive and impart information and ideas without interference by public authority and regardless of frontiers. - Charter of Fundamental Rights of the European Union, Article 11 pgp0.pgp Description: PGP signature
Re: postfix [was Re: Sendmail vs Exim vs Others]
On Fri, Jan 30, 2004 at 09:02:25AM +0100, Thorsten Haude wrote: Moin, * Nano Nano wrote (2004-01-30 08:52): On Fri, Jan 30, 2004 at 08:19:36AM +0100, Thorsten Haude wrote: What's in the log for this message? from /var/log/mail.log: Jan 29 23:42:00 desk postfix/smtp[4117]: 8AEF514756: to=[EMAIL PROTECTED], relay=smtp.comcast.net[204.127.198.27], delay=0, status=bounced (host smtp.comcast.net[204.127.198.27] said: 550 [PERMFAIL] comcast.net requires valid sender (in reply to RCPT TO command)) (Oops.) Don't be so frugal, what are the other entries for this mail? Here's some more before and after that entry, starting and ending at Postfix starting/stopping entries (uid and account names obfuscated): Jan 29 21:48:30 desk postfix/postfix-script: starting the Postfix mail system Jan 29 21:48:31 desk postfix/master[1401]: daemon started -- version 2.0.18 Jan 29 21:51:18 desk postfix/postfix-script: fatal: usage: postfix start (or stop, reload, abort, flush, or check) Jan 29 21:51:23 desk postfix/postfix-script: stopping the Postfix mail system Jan 29 21:51:23 desk postfix/master[1401]: terminating on signal 15 Jan 29 21:51:44 desk postfix/postfix-script: starting the Postfix mail system Jan 29 21:51:44 desk postfix/master[1652]: daemon started -- version 2.0.18 Jan 29 21:51:54 desk postfix/postfix-script: stopping the Postfix mail system Jan 29 21:51:54 desk postfix/master[1652]: terminating on signal 15 Jan 29 21:53:21 desk postfix/postfix-script: starting the Postfix mail system Jan 29 21:53:21 desk postfix/master[1848]: daemon started -- version 2.0.18 Jan 29 21:53:43 desk postfix/pickup[1851]: 829D4145BD: uid=[removed] from=[EMAIL PROTECTED] Jan 29 21:53:43 desk postfix/cleanup[1856]: 829D4145BD: message-id=[EMAIL PROTECTED] Jan 29 21:53:43 desk postfix/qmgr[1852]: 829D4145BD: from=[EMAIL PROTECTED], size=1413, nrcpt=1 (queue active) Jan 29 21:53:44 desk postfix/smtp[1858]: 829D4145BD: to=[EMAIL PROTECTED], relay=smtp.comcast.net[204.127.198.27], delay=1, status=sent (250 ok ; id=20040130055345014006d75ne) Jan 29 21:54:23 desk postfix/pickup[1851]: 6A974145CE: uid=[removed] from=[removed] Jan 29 21:54:23 desk postfix/cleanup[1856]: 6A974145CE: message-id=[EMAIL PROTECTED] Jan 29 21:54:23 desk postfix/qmgr[1852]: 6A974145CE: from=[EMAIL PROTECTED], size=382, nrcpt=1 (queue active) Jan 29 21:54:23 desk postfix/local[1869]: 6A974145CE: to=[EMAIL PROTECTED], orig_to=[removed], relay=local, delay=0, status=sent (|procmail -a $EXTENSION) Jan 29 21:54:37 desk postfix/pickup[1851]: E6A93145E1: uid=[removed] from=[removed] Jan 29 21:54:37 desk postfix/cleanup[1856]: E6A93145E1: message-id=[EMAIL PROTECTED] Jan 29 21:54:37 desk postfix/qmgr[1852]: E6A93145E1: from=[EMAIL PROTECTED], size=404, nrcpt=1 (queue active) Jan 29 21:54:38 desk postfix/smtp[1858]: E6A93145E1: to=[EMAIL PROTECTED], relay=smtp.comcast.net[216.148.227.125], delay=1, status=bounced (host smtp.comcast.net[216.148.227.125] said: 550 [PERMFAIL] comcast.net requires valid sender (in reply to RCPT TO command)) Jan 29 21:54:38 desk postfix/cleanup[1856]: 427B5145F6: message-id=[EMAIL PROTECTED] Jan 29 21:54:38 desk postfix/qmgr[1852]: 427B5145F6: from=, size=2047, nrcpt=1 (queue active) Jan 29 21:54:38 desk postfix/local[1869]: 427B5145F6: to=[EMAIL PROTECTED], relay=local, delay=0, status=sent (|procmail -a $EXTENSION) Jan 29 21:55:07 desk postfix/postfix-script: stopping the Postfix mail system Jan 29 21:55:07 desk postfix/master[1848]: terminating on signal 15 Jan 29 21:55:25 desk postfix/postfix-script: starting the Postfix mail system Jan 29 21:55:25 desk postfix/master[2126]: daemon started -- version 2.0.18 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: postfix [was Re: Sendmail vs Exim vs Others]
In article [EMAIL PROTECTED], Nano Nano [EMAIL PROTECTED] wrote: On Thu, Jan 29, 2004 at 09:53:43PM -0800, Nano Nano wrote: Configuration: Internet with smarthost Append .domain? No Smtp relay host? My ISPs smtp server Final destination domains? default choices ---Force synchronous updates on mail queue? Yes Is that it? Just drop in and go? I did force syncronous updates so I wouldn't ever lose mail. My first test message to the outside world bounced with: [EMAIL PROTECTED]: host smtp.comcast.net[216.148.227.125] said: 550 [PERMFAIL] comcast.net requires valid sender (in reply to RCPT TO command) exim always added my Sender header for me. What to do? It's not the Sender: header. If it refused your message at RCPT TO, it didn't even see the body yet. I bet postfix used an invalid MAIL FROM. Make sure your machine has a valid, existing domain name or that postfix is configured to use a valid, existing domain name as its primary domain (in exim, that's primary_hostname/ qualify_domain - I don't know the postfix equivalent). Mike. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: postfix [was Re: Sendmail vs Exim vs Others]
Hi, * Nano Nano wrote (2004-01-30 09:16): Jan 29 21:54:37 desk postfix/pickup[1851]: E6A93145E1: uid=[removed] from=[removed] Jan 29 21:54:37 desk postfix/cleanup[1856]: E6A93145E1: message-id=[EMAIL PROTECTED] Jan 29 21:54:37 desk postfix/qmgr[1852]: E6A93145E1: from=[EMAIL PROTECTED], size=404, nrcpt=1 (queue active) Jan 29 21:54:38 desk postfix/smtp[1858]: E6A93145E1: to=[EMAIL PROTECTED], relay=smtp.comcast.net[216.148.227.125], delay=1, status=bounced (host smtp.comcast.net[216.148.227.125] said: 550 [PERMFAIL] comcast.net requires valid sender (in reply to RCPT TO command)) I deliver my mails with a valid from address, which [EMAIL PROTECTED] is not. Maybe you should fix your MUA? Thorsten -- Getting a thrill out of some stupid quote is a sign of idiocy. - turmeric pgp0.pgp Description: PGP signature
Re: postfix [was Re: Sendmail vs Exim vs Others]
On Fri, Jan 30, 2004 at 10:28:43PM +0100, Thorsten Haude wrote: I deliver my mails with a valid from address, which [EMAIL PROTECTED] is not. Maybe you should fix your MUA? Aha, that explains why the 2nd message worked: I have a mutt rule that adds the correct From for list-replies. I guess I'll have to make sure Mutt adds a valid From or Sender in all cases. I'll have to make sure all mail-generating programs do that: is there a facility in Debian to assist with that, or will I need to administer Identities in each MUA individually? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: postfix [was Re: Sendmail vs Exim vs Others]
On 2004-01-30 14:57:37 -0800, Nano Nano wrote: Aha, that explains why the 2nd message worked: I have a mutt rule that adds the correct From for list-replies. I guess I'll have to make sure Mutt adds a valid From or Sender in all cases. I'll have to make sure all mail-generating programs do that: is there a facility in Debian to assist with that, or will I need to administer Identities in each MUA individually? Isn't postfix able to do email rewriting? -- Vincent Lefèvre [EMAIL PROTECTED] - Web: http://www.vinc17.org/ - 100% validated (X)HTML - Acorn Risc PC, Yellow Pig 17, Championnat International des Jeux Mathématiques et Logiques, TETRHEX, etc. Work: CR INRIA - computer arithmetic / SPACES project at LORIA -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: postfix [was Re: Sendmail vs Exim vs Others]
On Sat, Jan 31, 2004 at 01:21:46AM +0100, Vincent Lefevre wrote: On 2004-01-30 14:57:37 -0800, Nano Nano wrote: Aha, that explains why the 2nd message worked: I have a mutt rule that adds the correct From for list-replies. I guess I'll have to make sure Mutt adds a valid From or Sender in all cases. I'll have to make sure all mail-generating programs do that: is there a facility in Debian to assist with that, or will I need to administer Identities in each MUA individually? Isn't postfix able to do email rewriting? I guess but it apparently doesn't do it OOB. I never liked how Exim leaked my AccountFullName+EtcEmailAddressesEmail identity in the Sender when I was using an alternate valid From email and nickname (like here). So I like the idea of doing it in the MUA but I would still like some standarization or central management. Probably can't have both. I'm crawling forward. At least I'm aware of the issues. BTW, I realized if you purge Exim's configuration, /etc/email-addresses will disappears if you haven't modified it. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]