Re: private/smtp-amavis: No such file or directory helps for master.cf
On 12/07/2010 03:44, Sahil Tandon wrote: On Mon, 2010-07-12 at 02:55:40 +0200, David Touzeau wrote: Jul 12 02:48:31 appliance postfix-mail.touzeau.biz/qmgr[15659]: warning: connect to transport private/smtp-amavis: No such file or directory r...@appliance:/var/spool/postfix-mail.touzeau.biz/private# ls -la srw-rw-rw- 1 postfix root0 2010-07-12 02:38 smtp-amavis:127.0.0.1:1026 Odd. Master.cf : -o content_filter=smtp-amavis:127.0.0.1:1026 You might want to use brackets here to encapsulate the IP. smtp-amavis:127.0.0.1:1026unix----7smtp Why are you using 'inet' service name syntax with the 'unix' service type? Remove ':127.0.0.1:1026' and restart Postfix. And unless you want chroot, you can change the third '-' to 'n'. To familiarize yourself with what is supported in master.cf, see the master(5) manual. thanks for your help but this did not fix the problem nnow postfix claim : Jul 12 10:16:55 appliance postfix-mail.touzeau.biz/master[31968]: fatal: /etc/postfix-mail.touzeau.biz/master.cf: line 29: valid hostname or network address required in smtp-amavis:127.0.0.1:1026 i have set this : smtpinetn - n - - smtpd -o content_filter=smtp-amavis:[127.0.0.1]:1026 submission inetn - n - - smtpd -o smtpd_etrn_restrictions=reject -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes -o smtpd_client_restrictions=permit_sasl_authenticated,reject smtps inetn - n - - smtpd -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes -o smtpd_client_restrictions=permit_sasl_authenticated,reject smtp-amavis:127.0.0.1:1026 inet- - n - 7 smtp -o smtp_data_done_timeout=1200 -o smtp_send_xforward_command=yes -o disable_dns_lookups=yes 192.168.1.228:10026 inetn - n - 2 smtp -o local_recipient_maps= -o relay_recipient_maps= -o smtpd_restriction_classes= -o smtpd_client_restrictions= -o smtpd_helo_restrictions= -o smtpd_sender_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,reject -o mynetworks=127.0.0.0/8,192.168.1.228 -o mynetworks_style=host -o strict_rfc821_envelopes=yes -o smtpd_error_sleep_time=0 -o smtpd_soft_error_limit=1001 -o smtpd_hard_error_limit=1000 -o receive_override_options=no_header_body_checks pickup fifon - n 60 1 pickup cleanup unixn - n - 0 cleanup qmgrfifon - n 300 1 qmgr tlsmgr unix- - n 1000? 1 tlsmgr rewrite unix- - n - - trivial-rewrite bounce unix- - n - 0 bounce defer unix- - n - 0 bounce trace unix- - n - 0 bounce verify unix- - n - 1 verify flush unixn - n 1000? 0 flush proxymapunix- - n - - proxymap proxywrite unix- - n - 1 proxymap smtpunix- - n - - smtp relay unix- - n - - smtp -o fallback_relay= showq unixn - n - - showq error unix- - n - - error discard unix- - n - - discar
Re: private/smtp-amavis: No such file or directory helps for master.cf
David Touzeau: Jul 12 02:48:31 appliance postfix-mail.touzeau.biz/qmgr[15659]: warning: connect to transport private/smtp-amavis: No such file or directory It looks for the name /var/spool/postfix.../private/smtp-amavis r...@appliance:/var/spool/postfix-mail.touzeau.biz/private# ls -la ... srw-rw-rw- 1 postfix root0 2010-07-12 02:38 smtp-amavis:127.0.0.1:1026 That is smtp-amavis with garbage at the end. Remove the garbage from the name, and do postfix reload. Wietse
Re: private/smtp-amavis: No such file or directory helps for master.cf
On Mon, 2010-07-12 at 10:19:34 +0200, David Touzeau wrote: On 12/07/2010 03:44, Sahil Tandon wrote: Why are you using 'inet' service name syntax with the 'unix' service type? Remove ':127.0.0.1:1026' and restart Postfix. And unless you want chroot, you can change the third '-' to 'n'. To familiarize yourself with what is supported in master.cf, see the master(5) manual. thanks for your help but this did not fix the problem nnow postfix claim : Jul 12 10:16:55 appliance postfix-mail.touzeau.biz/master[31968]: fatal: /etc/postfix-mail.touzeau.biz/master.cf: line 29: valid hostname or network address required in smtp-amavis:127.0.0.1:1026 i have set this : smtp-amavis:127.0.0.1:1026inet- - n - 7 smtp Uh, I asked you to remove ':127.0.0.1:1026' from the above line, and instead, you kept that and changed 'unix' - 'inet'. Why? -- Sahil Tandon sa...@freebsd.org
Re: private/smtp-amavis: No such file or directory helps for master.cf
On 12/07/2010 12:49, Wietse Venema wrote: David Touzeau: Jul 12 02:48:31 appliance postfix-mail.touzeau.biz/qmgr[15659]: warning: connect to transport private/smtp-amavis: No such file or directory It looks for the name /var/spool/postfix.../private/smtp-amavis r...@appliance:/var/spool/postfix-mail.touzeau.biz/private# ls -la ... srw-rw-rw- 1 postfix root0 2010-07-12 02:38 smtp-amavis:127.0.0.1:1026 That is smtp-amavis with garbage at the end. Remove the garbage from the name, and do postfix reload. Wietse many thanks Wietse it's now working like a charm with this config # == # service type private unpriv chroot wakeup maxproc command + args # (yes) (yes) (yes) (never) (100) # == smtpinetn - n - - smtpd -o content_filter=smtp-amavis:127.0.0.1:1026 submission inetn - n - - smtpd -o smtpd_etrn_restrictions=reject -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes -o smtpd_client_restrictions=permit_sasl_authenticated,reject smtps inetn - n - - smtpd -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes -o smtpd_client_restrictions=permit_sasl_authenticated,reject smtp-amavis unix- - n - 7 smtp -o smtp_data_done_timeout=1200 -o smtp_send_xforward_command=yes -o disable_dns_lookups=yes 192.168.1.228:10026 inetn - n - 2 smtpd -o local_recipient_maps= -o relay_recipient_maps= -o smtpd_restriction_classes= -o smtpd_client_restrictions= -o smtpd_helo_restrictions= -o smtpd_sender_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,reject -o mynetworks=127.0.0.0/8,192.168.1.228 -o mynetworks_style=host -o strict_rfc821_envelopes=yes -o smtpd_error_sleep_time=0 -o smtpd_soft_error_limit=1001 -o smtpd_hard_error_limit=1000 -o receive_override_options=no_header_body_check
Re: private/smtp-amavis: No such file or directory helps for master.cf
On Mon, Jul 12, 2010 at 03:17:49PM +0200, David Touzeau wrote: smtp-amavis unix- - n - 7 smtp -o smtp_data_done_timeout=1200 -o smtp_send_xforward_command=yes -o disable_dns_lookups=yes I notice people still using disable_dns_lookups=yes long after the reason for doing so became moot. This setting is no longer necessary for content filters, and is rarely, if ever, necessary otherwise. It should be removed from HOWTO guides, ... -- Viktor.
Re: private/smtp-amavis: No such file or directory helps for master.cf
On 07/12/2010 10:58 AM, Victor Duchovni wrote: On Mon, Jul 12, 2010 at 03:17:49PM +0200, David Touzeau wrote: smtp-amavis unix- - n - 7 smtp -o smtp_data_done_timeout=1200 -o smtp_send_xforward_command=yes -o disable_dns_lookups=yes I notice people still using disable_dns_lookups=yes long after the reason for doing so became moot. This setting is no longer necessary for content filters, and is rarely, if ever, necessary otherwise. It should be removed from HOWTO guides, ... If you don't mind, why was it necessary, and why isn't it any longer? I've still got it on my amavisd-new instance, and have long forgotten where it came from.
Re: private/smtp-amavis: No such file or directory helps for master.cf
Michael Orlitzky: On 07/12/2010 10:58 AM, Victor Duchovni wrote: On Mon, Jul 12, 2010 at 03:17:49PM +0200, David Touzeau wrote: smtp-amavisunix- - n - 7 smtp -o smtp_data_done_timeout=1200 -o smtp_send_xforward_command=yes -o disable_dns_lookups=yes I notice people still using disable_dns_lookups=yes long after the reason for doing so became moot. This setting is no longer necessary for content filters, and is rarely, if ever, necessary otherwise. It should be removed from HOWTO guides, ... If you don't mind, why was it necessary, and why isn't it any longer? I've still got it on my amavisd-new instance, and have long forgotten where it came from. The combination of 1) Postfix sending up to 50 recipients per mail transaction. 2) Sending mail for recipients in multiple domains through a single content filter or gateway host. 3) DNS CNAME expansion of domains in MAIL FROM/RCPT TO commands. (Postfix no longer does this expansion.) 4) ESMTP command pipelining, meaning that the SMTP client could buffer up a lot of commands before sending them to the server. (The Postfix SMTP client now flushes output if the buffered data is getting old.) These together could result in the SMTP server timing out when the DNS CNAME lookups were slow. Wietse
Re: private/smtp-amavis: No such file or directory helps for master.cf
On Mon, 2010-07-12 at 02:55:40 +0200, David Touzeau wrote: Jul 12 02:48:31 appliance postfix-mail.touzeau.biz/qmgr[15659]: warning: connect to transport private/smtp-amavis: No such file or directory r...@appliance:/var/spool/postfix-mail.touzeau.biz/private# ls -la srw-rw-rw- 1 postfix root0 2010-07-12 02:38 smtp-amavis:127.0.0.1:1026 Odd. Master.cf : -o content_filter=smtp-amavis:127.0.0.1:1026 You might want to use brackets here to encapsulate the IP. smtp-amavis:127.0.0.1:1026unix----7smtp Why are you using 'inet' service name syntax with the 'unix' service type? Remove ':127.0.0.1:1026' and restart Postfix. And unless you want chroot, you can change the third '-' to 'n'. To familiarize yourself with what is supported in master.cf, see the master(5) manual. -- Sahil Tandon sa...@freebsd.org