[pfx] Re: Disable Non Delivery Notifications only for some adresses
23.05.2024 15:38, Kevin Cousin via Postfix-users пишет: Le 2024-05-21T22:50:48.000+02:00, Wietse Venema via Postfix-users a écrit : Kevin Cousin via Postfix-users: . . . Configure a dedicated smtpd servicce in master.cf. Then use https://www.postfix.org/postconf.5.html#smtpd_command_filter to append NOTIFY=NONE to RCPT TO commands. For example, to set up a no-bounce service on port 25: /etc/postfix/master.cf: :26 .. .. .. .. smtpd -o { smtpd_command_filter = pcre:/etc/postfix/no-notify.pcre } Kevin Thank you! This is exactly what I need. Regards, Alexandr ___ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org
[pfx] Re: how disable DSN pipe
23.05.2024 19:06, Wietse Venema via Postfix-users пишет: Aleksandr Kolesnikov via Postfix-users: if the user requests a DSN, he receives a delivery message via the ... how to prohibit the sending of such DSN? Perhaps: https://www.postfix.org/DSN_README.html Wietse I may have misunderstood the contents of DSN_README, but I don't need to turn off DSN completely. I need the DSN to not work only for those senders for whom the transport is configured to "resubmit" (pipe). In my case, I was helped by the smtpd_command_filter option, which you pointed out in your recent answer to a similar topic. Thanks for your reply. Regards, Alexandr ___ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org
[pfx] Re: check sender trouble
18.11.2023 17:32, Matus UHLAR - fantomas via Postfix-users пишет: On 18.11.23 07:30, Alexander Kolesnikov via Postfix-users wrote: 192.168.250.35:27 inet n - n - - smtpd -o syslog_name=postfix/$service_name -o smtpd_delay_reject=no -o smtpd_sender_restrictions=pcre:/etc/postfix/senders_cgp.pcre,reject_non_fqdn_sender,reject telnet 192.168.250.35 27 Trying 192.168.250.35... Connected to hak.vdk.ru. Escape character is '^]'. 220 hak.vdk.ru ESMTP Postfix mail from: w.w 250 2.1.0 Ok rset 250 2.0.0 Ok mail from: w@w 554 5.7.1 : Sender address rejected: Access denied I'm sorry, but I haven't fixed the problem. What do I need to do so that the postfix does not accept messages with an incomplete sender address (without the domain part)? I guess you are trying to connect from 192.168.250.35 which is considered local: http://www.postfix.org/postconf.5.html#local_header_rewrite_clients so the append_at_myorigin applies. I have configured in main.cf local_header_rewrite_clients = inline:{ 192.168.250.25=ok } inet_interfaces = 127.0.0.1 and connected with a telnet from the address 192.168.250.14. And the postfix still accepts messages from the sender without the domain part. Did I set up local_header_rewrite_clients and inet_interfaces correctly? Regards, Alexander ___ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org
[pfx] check sender trouble
postconf -n alias_database = lmdb:/etc/postfix/aliases alias_maps = lmdb:/etc/postfix/aliases append_at_myorigin = no append_dot_mydomain = no command_directory = /usr/sbin compatibility_level = 3.8 daemon_directory = /usr/libexec/postfix data_directory = /var/lib/postfix default_database_type = lmdb default_transport = smtp header_checks = pcre:/etc/postfix/header_checks.pcre html_directory = /etc/postfix/html inet_protocols = ipv4 mail_owner = postfix mailq_path = /usr/libexec/postfix/mailq manpage_directory = /usr/local/man maximal_backoff_time = 300s meta_directory = /etc/postfix minimal_backoff_time = 300s multi_instance_directories = multi_instance_enable = yes multi_instance_wrapper = ${command_directory}/postmulti -p -- mydestination = hak.vdk.ru myhostname = hak.vdk.ru mynetworks = 127.0.0.0/8 newaliases_path = /usr/libexec/postfix/newaliases queue_directory = /var/spool/postfix readme_directory = /etc/postfix/READMES relayhost = [192.168.250.14] sample_directory = /etc/postfix sendmail_path = /usr/libexec/postfix/sendmail setgid_group = postdrop shlib_directory = no smtpd_recipient_restrictions = lmdb:/etc/postfix/recipient_check unknown_local_recipient_reject_code = 550 postconf -M smtp inet n - n - - smtpd dnsblogunix - - n - 0 dnsblog tlsproxy unix - - n - 0 tlsproxy -o tlsproxy_client_security_level=none -o tlsproxy_use_tls=yes -o tlsproxy_tls_loglevel=5 192.168.250.35:27 inet n - n - - smtpd -o syslog_name=postfix/$service_name -o smtpd_delay_reject=no -o smtpd_sender_restrictions=pcre:/etc/postfix/senders_cgp.pcre,reject_non_fqdn_sender,reject pickup unix n - n 60 1 pickup cleanupunix n - n - 0 cleanup qmgr unix n - n 300 1 qmgr tlsmgr unix - - n 1000? 1 tlsmgr rewriteunix - - n - - trivial-rewrite bounce unix - - n - 0 bounce defer unix - - n - 0 bounce trace unix - - n - 0 bounce verify unix - - n - 1 verify flush unix n - n 1000? 0 flush proxymap unix - - n - - proxymap proxywrite unix - - n - 1 proxymap smtp unix - - n - - smtp -o smtp_bind_address=192.168.250.35 smtp-2 unix - - n - - smtp -o smtp_bind_address=192.168.250.0 relay unix - - n - - smtp -o syslog_name=postfix/$service_name showq unix n - n - - showq error unix - - n - - error -o daemon_timeout=300 retry unix - - n - - error -o daemon_timeout=300 discardunix - - n - - discard local unix - n n - - local virtualunix - n n - - virtual lmtp unix - - n - - lmtp anvil unix - - n - 1 anvil scache unix - - n - 1 scache postlogunix-dgram n - n - 1 postlogd telnet 192.168.250.35 27 Trying 192.168.250.35... Connected to hak.vdk.ru. Escape character is '^]'. 220 hak.vdk.ru ESMTP Postfix mail from: w.w 250 2.1.0 Ok rset 250 2.0.0 Ok mail from: w@w 554 5.7.1 : Sender address rejected: Access denied rset 250 2.0.0 Ok mail from: w@ 501 5.1.7 Bad sender address syntax rset 250 2.0.0 Ok mail from: w.w 250 2.1.0 Ok quit 221 2.0.0 Bye Connection closed by foreign host. I'm sorry, but I haven't fixed the problem. What do I need to do so that the postfix does not accept messages with an incomplete sender address (without the domain part)? Regards, Alexander ___ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org