theYinYeti Posted August 4, 2006 Report Share Posted August 4, 2006 (edited) My config is such: RECEIVE: ISP(POP3) -> PopFile -> Fetchmail -> Postfix (@sedentaire.local) -> BincIMAP -> Mail client. SEND: Mail client -> Postfix (@sedentaire.local) -> ISP(SMTP). Mail worked. It still works for receiving but not for sending. Nothing changed, except maybe if postfix was part of a recent "security and bugfix update". That's where I am... I'm ready to try ANYTHING. If you find something peculiar or bad in my config, just say so. Please. Postfix' config is: ==> main.cf <== readme_directory = /usr/share/doc/postfix-2.2.5/README_FILES html_directory = /usr/share/doc/postfix-2.2.5/html sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop command_directory = /usr/sbin manpage_directory = /usr/share/man daemon_directory = /usr/lib/postfix newaliases_path = /usr/bin/newaliases mailq_path = /usr/bin/mailq queue_directory = /var/spool/postfix mail_owner = postfix mydestination = $myhostname, localhost, nomade, salon, sedentaire, localhost.$mydomain, $mydomain, nomade.$mydomain, salon.$mydomain mynetworks = 192.168.1.0/30, 127.0.0.0/8 relayhost = smtp.ISP.fr sender_canonical_maps = hash:/etc/postfix/canonical-sender recipient_canonical_maps = hash:/etc/postfix/canonical-recipient home_mailbox = Maildir/ disable_mime_input_processing = yes header_checks = regexp:/etc/postfix/header_checks delay_warning_time = 12h disable_dns_lookup = yes smtpd_banner = $myhostname ESMTP $mail_name ($mail_version) (Mandriva Linux) unknown_local_recipient_reject_code = 450 smtp-filter_destination_concurrency_limit = 2 lmtp-filter_destination_concurrency_limit = 2 smtpd_sasl_path = /etc/postfix/sasl:/usr/lib/sasl2 ==> canonical-sender <== yves yves@ISP.fr iris iris@ISP.fr sharedmail yves@ISP.fr ==> canonical-recipient <== yves yves@localhost iris iris@localhost yves@ISP.fr yves@localhost iris@ISP.fr iris@localhost ==> header_checks <== /^X-Text-Classification: shared/ REDIRECT sharedmail@localhost It already happened once some time ago; it was my ISP not allowing mail relaying; they solved the issue at that time. However, that time, I had a report which said something like "please use your ISP's SMTP server". This time though, I have no report; a typical returned mail looks like this: This is the Postfix program at host sedentaire.local. I'm sorry [...] could not be delivered to [...] It's attached below. For further assistance, please send mail to <postmaster> If you do so, please include this problem report. [...] --- Delivery report unavailable --- Reporting-MTA: dns; sedentaire.local X-Postfix-Queue-ID: 2C20C26BE7 X-Postfix-Sender: rfc822; yves@ISP.fr Arrival-Date: Tue, 25 Jul 2006 17:09:54 +0000 (UTC) Subject: test mail From: yves@ISP.fr (Yves) Date: Tue, 25 Jul 2006 19:09:53 +0200 To: me@somewhere-else.com test mail. On the other hand, this works alright: # telnet smtp.ISP.fr 25 Trying xxx.xxx.xxx.xxx... Connected to smtp.ISP.fr (xxx.xxx.xxx.xxx). Escape character is '^]'. 220 realname.ISP.fr ESMTP Postfix HELO sedentaire.local 250 realname.ISP.fr MAIL FROM: yves@ISP.fr 250 Ok RCPT TO: me@somewhere-else.com 250 Ok DATA 354 End data with <CR><LF>.<CR><LF> Subject: test telnet+HELO+MAIL+RCPT+DATA Test 5 . 250 Ok: queued as 1BBA025602 QUIT 221 Bye Connection closed by foreign host. I got the mail! So this time, I think it comes from me, my Postfix to be precise. However, it worked before! Not knowing what to do, I looked at the output of "sendmail -q". Here it is: /var/log# find . -type f | xargs tail -n 0 -f ==> ./mail/info <== Aug 4 18:11:42 sedentaire postfix/qmgr[5150]: 0C88A26BE0: from=<root@sedentaire.local>, size=425, nrcpt=1 (queue active) Aug 4 18:11:42 sedentaire postfix/qmgr[5150]: 17DF3FC3C: from=<yves@ISP.fr>, size=585, nrcpt=2 (queue active) Aug 4 18:11:42 sedentaire postfix/qmgr[5150]: 300B725464: from=<iris@ISP.fr>, size=32114, nrcpt=1 (queue active) Aug 4 18:11:42 sedentaire postfix/qmgr[5150]: A7FF226C17: from=<yves@ISP.fr>, size=436, nrcpt=1 (queue active) ==> ./mail/errors <== Aug 4 20:11:42 sedentaire postfix/smtp[5741]: fatal: unknown service: smtp/tcp Aug 4 20:11:42 sedentaire postfix/smtp[5742]: fatal: unknown service: smtp/tcp Aug 4 20:11:42 sedentaire postfix/smtp[5744]: fatal: unknown service: smtp/tcp Aug 4 20:11:42 sedentaire postfix/smtp[5743]: fatal: unknown service: smtp/tcp ==> ./syslog <== Aug 4 18:11:42 sedentaire postfix/qmgr[5150]: 0C88A26BE0: from=<root@sedentaire.local>, size=425, nrcpt=1 (queue active) Aug 4 18:11:42 sedentaire postfix/qmgr[5150]: 17DF3FC3C: from=<yves@ISP.fr>, size=585, nrcpt=2 (queue active) Aug 4 18:11:42 sedentaire postfix/qmgr[5150]: 300B725464: from=<iris@ISP.fr>, size=32114, nrcpt=1 (queue active) Aug 4 18:11:42 sedentaire postfix/qmgr[5150]: A7FF226C17: from=<yves@ISP.fr>, size=436, nrcpt=1 (queue active) Aug 4 20:11:42 sedentaire postfix/smtp[5741]: fatal: unknown service: smtp/tcp Aug 4 20:11:42 sedentaire postfix/smtp[5742]: fatal: unknown service: smtp/tcp Aug 4 20:11:42 sedentaire postfix/smtp[5744]: fatal: unknown service: smtp/tcp Aug 4 20:11:42 sedentaire postfix/smtp[5743]: fatal: unknown service: smtp/tcp ==> ./mail/warnings <== Aug 4 18:11:43 sedentaire postfix/qmgr[5150]: warning: premature end-of-input on private/smtp socket while reading input attribute name Aug 4 18:11:43 sedentaire postfix/qmgr[5150]: warning: private/smtp socket: malformed response Aug 4 20:11:43 sedentaire postfix/master[5143]: warning: process /usr/lib/postfix/smtp pid 5741 exit status 1 Aug 4 20:11:43 sedentaire postfix/master[5143]: warning: /usr/lib/postfix/smtp: bad command startup -- throttling Aug 4 18:11:43 sedentaire postfix/qmgr[5150]: warning: transport smtp failure -- see a previous warning/fatal/panic logfile record for the problem description Aug 4 18:11:43 sedentaire postfix/qmgr[5150]: warning: premature end-of-input on private/smtp socket while reading input attribute name Aug 4 18:11:43 sedentaire postfix/qmgr[5150]: warning: private/smtp socket: malformed response Aug 4 18:11:43 sedentaire postfix/qmgr[5150]: warning: transport smtp failure -- see a previous warning/fatal/panic logfile record for the problem description Aug 4 20:11:43 sedentaire postfix/master[5143]: warning: process /usr/lib/postfix/smtp pid 5742 exit status 1 Aug 4 18:11:43 sedentaire postfix/qmgr[5150]: warning: premature end-of-input on private/smtp socket while reading input attribute name Aug 4 18:11:43 sedentaire postfix/qmgr[5150]: warning: private/smtp socket: malformed response Aug 4 18:11:43 sedentaire postfix/qmgr[5150]: warning: transport smtp failure -- see a previous warning/fatal/panic logfile record for the problem description Aug 4 20:11:43 sedentaire postfix/master[5143]: warning: process /usr/lib/postfix/smtp pid 5744 exit status 1 Aug 4 18:11:43 sedentaire postfix/qmgr[5150]: warning: premature end-of-input on private/smtp socket while reading input attribute name Aug 4 18:11:43 sedentaire postfix/qmgr[5150]: warning: private/smtp socket: malformed response Aug 4 18:11:43 sedentaire postfix/qmgr[5150]: warning: transport smtp failure -- see a previous warning/fatal/panic logfile record for the problem description Aug 4 20:11:43 sedentaire postfix/master[5143]: warning: process /usr/lib/postfix/smtp pid 5743 exit status 1 ==> ./syslog <== Aug 4 18:11:43 sedentaire postfix/qmgr[5150]: warning: premature end-of-input on private/smtp socket while reading input attribute name Aug 4 18:11:43 sedentaire postfix/qmgr[5150]: warning: private/smtp socket: malformed response Aug 4 20:11:43 sedentaire postfix/master[5143]: warning: process /usr/lib/postfix/smtp pid 5741 exit status 1 Aug 4 20:11:43 sedentaire postfix/master[5143]: warning: /usr/lib/postfix/smtp: bad command startup -- throttling Aug 4 18:11:43 sedentaire postfix/qmgr[5150]: warning: transport smtp failure -- see a previous warning/fatal/panic logfile record for the problem description Aug 4 18:11:43 sedentaire postfix/qmgr[5150]: warning: premature end-of-input on private/smtp socket while reading input attribute name Aug 4 18:11:43 sedentaire postfix/qmgr[5150]: warning: private/smtp socket: malformed response Aug 4 18:11:43 sedentaire postfix/qmgr[5150]: warning: transport smtp failure -- see a previous warning/fatal/panic logfile record for the problem description Aug 4 20:11:43 sedentaire postfix/master[5143]: warning: process /usr/lib/postfix/smtp pid 5742 exit status 1 Aug 4 18:11:43 sedentaire postfix/qmgr[5150]: warning: premature end-of-input on private/smtp socket while reading input attribute name Aug 4 18:11:43 sedentaire postfix/qmgr[5150]: warning: private/smtp socket: malformed response Aug 4 18:11:43 sedentaire postfix/qmgr[5150]: warning: transport smtp failure -- see a previous warning/fatal/panic logfile record for the problem description Aug 4 20:11:43 sedentaire postfix/master[5143]: warning: process /usr/lib/postfix/smtp pid 5744 exit status 1 Aug 4 18:11:43 sedentaire postfix/qmgr[5150]: warning: premature end-of-input on private/smtp socket while reading input attribute name Aug 4 18:11:43 sedentaire postfix/qmgr[5150]: warning: private/smtp socket: malformed response Aug 4 18:11:43 sedentaire postfix/qmgr[5150]: warning: transport smtp failure -- see a previous warning/fatal/panic logfile record for the problem description Aug 4 20:11:43 sedentaire postfix/master[5143]: warning: process /usr/lib/postfix/smtp pid 5743 exit status 1 An idea? I accept even seemingly stupid ideas; it may give me other ideas :) Yves. Edited August 7, 2006 by theYinYeti Quote Link to comment Share on other sites More sharing options...
coverup Posted August 5, 2006 Report Share Posted August 5, 2006 I think you can bypass postfix when sending mail. For instance, evolution allows you to poll local spool for received mail, but you can send mail directly to the SMTP server. If you are happy with polling POP3 account directly, without fetching mail ro the spool, you don't heed to use postfix at all. Try stopping postfix and sending mail directly to the ISP's SMTP server. If that works, then the problem is on your machine. If not, it's their fault. Quote Link to comment Share on other sites More sharing options...
theYinYeti Posted August 5, 2006 Author Report Share Posted August 5, 2006 Thanks for your answer coverup. Unfortunately, it is not that simple... It may very well work with a direct access to my ISP, and not with Postfix, and still be a problem with the ISP, because somehow they are able to differentiate between a direct call, and a relay call; to prevent SPAM, they are tempted to forbid relaying, which I won't let them do. Indeed, I won't use direct access, for several reasons: - I have several users (3, me included), and I want each to be able to send mail to another, so Postfix is needed. - I have 3 PCs, so that would make 3 (PC) times 3 (users) mail clients to configure, instead of one single Postfix configuration file on my LAN's SMTP server. - I want the mail service to keep running when I am disconnected (mail is then queued by Postfix), without having to re-configure all mail clients. The problem is: this time, I'm not sure it comes from their side... Yves. Quote Link to comment Share on other sites More sharing options...
theYinYeti Posted August 6, 2006 Author Report Share Posted August 6, 2006 Reviewing all my config, I had an idea: try and see if local Postfix did work. And YES, it does! [root@sedentaire ~]# mail yves Subject: local test local test 1 . EOT [root@sedentaire ~]# mail yves@ISP.fr Subject: sort of local test local test 2 . EOT I got both email! The second one is actually local due to the rule defined in "canonical-recipient": yves@ISP.fr yves@localhost Knowing that local mail works, do you think I can assume that the problem comes from the ISP side? Yves. Quote Link to comment Share on other sites More sharing options...
tyme Posted August 6, 2006 Report Share Posted August 6, 2006 you should set up your own mail server for the local messages and remove postfix from the steps for external e-mail, and just set up the mail clients to check both accounts. it's seeing your postfix as an external mail server trying to send e-mail from somewhere else and so it rejects it. Quote Link to comment Share on other sites More sharing options...
theYinYeti Posted August 6, 2006 Author Report Share Posted August 6, 2006 I already mentionned that I wouldn't give up Postfix, for the forementionned reasons, and still others. However, I'm interested in what you say (as always ;) ) because if I understand you correctly, you imply that my config is working correctly, and that the problem indeed comes from my ISP. Is that what you think? I consider relaying my mails a service that is due to me (and has already been working for 5 years). No one will make me believe that they cannot make the difference between theirs customers' mail servers and anonymous mail servers from the web, if only because we (customers) use the IP addresses they gave us. I'll bug them then :lol: Yves. Quote Link to comment Share on other sites More sharing options...
theYinYeti Posted August 7, 2006 Author Report Share Posted August 7, 2006 Solved! My chrooted environment was somehow half-set only! But "/usr/sbin/postfix-chroot.sh check" did not detect it because it works the bad way: it checks that files being there are OK. My files being there in the chrooted environment were OK, but most were absent and "check" did not report anything about those. I discovered that by reading the script. So I ran "/usr/sbin/postfix-chroot.sh enable" and all is fine again, or so it seems. Yves. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.