Am 08.09.2011 12:57, schrieb Wietse Venema: > Josef Karliak: >> Good day everybody, >> could I change SMTP error message ? For example email doesn't >> exists, email return message like "5.1.1 smtp; 550 5.1.1 >> <noem...@fn.ca>: Recipient address rejected: User unknown in local >> recipient table> #SMTP#. Could I change this message, for my own >> message in the czech language ? (without diacritics of course:) > > No. However, you can APPEND a local text to the reply if you > upgrade to Postfix 2.8. > > Wietse > > smtpd_reject_footer (default: empty) > > Optional information that is appended after each SMTP server > 4XX or 5XX response. > > Example: > > /etc/postfix/main.cf: > smtpd_reject_footer = For assistance, call 800-555-0101. > Please provide the following information in your problem report: > time ($localtime), client ($client_address) and server > ($server_name). > > Server response: > > 550-5.5.1 <user@example> Recipient address rejected: User unknown > 550 5.5.1 For assistance, call 800-555-0101. Please provide the > following information in your problem report: time (Jan 4 15:42:00), > client (192.168.1.248) and server (mail1.example.com). > > More details: http://www.postfix.org/postconf.5.html#smtpd_reject_footer
this is a nice feature and active here since 2011-01 but be careful if you use postfix behind a barracuda-spamfirewall the firewall has to be exlcuded from "smtpd_reject_footer" because it will answer only the last line (reject footer) to a sending server if the rcpt does not exist and the sender does not get "User unknown" main.cf: barracuda_smtpd_recipient_restrictions = permit_mynetworks, reject master.cf: 10.0.0.15:10026 inet n - n - - smtpd -o mynetworks=10.0.0.20 -o smtpd_client_connection_count_limit=75 -o smtpd_recipient_restrictions=$barracuda_smtpd_recipient_restrictions -o receive_override_options=no_header_body_checks,no_milters -o local_header_rewrite_clients= -o sender_dependent_relayhost_maps= -o content_filter= -o smtpd_delay_reject=no -o smtpd_client_restrictions= -o smtpd_helo_restrictions= -o smtpd_helo_required=no -o smtpd_sender_restrictions= -o smtpd_sender_login_maps= -o smtpd_data_restrictions= -o smtpd_end_of_data_restrictions= -o smtpd_restriction_classes= -o smtpd_error_sleep_time=0 -o smtpd_soft_error_limit=1001 -o smtpd_hard_error_limit=1000 -o smtpd_client_connection_rate_limit=0 -o smtpd_peername_lookup=no -o smtpd_use_tls=no -o smtpd_tls_security_level=none -o smtpd_sasl_auth_enable=no -o smtpd_reject_footer= -o max_idle=1h -o max_use=1000
signature.asc
Description: OpenPGP digital signature