On Fri, Jan 16, 2009 at 3:28 PM, mouss <mo...@ml.netoyen.net> wrote: > Gary Frederick a écrit : >> Thanks all. I now understand. >> >> ... >>>> My postfix sends a message back to the sender that it was to a >>>> non-existent address. I was thinking about not sending them anything >>>> back. No need to tell them they guessed wrong. >>>> >>> in a good confifguration postfix doesn't _send_. it _rejects_ the >>> transaction. this is like a 404 in http. the bounce is created by the >>> client MTA, not by your postfix. >> >> An example where my server rejected a bad address: >> >> "The error that the other server returned was: 550 550 5.1.1 >> <a...@dev.jsoft.com>: Recipient address rejected: User unknown in >> virtual alias table (state 14)." >> > > please show full log lines (you can hide private infos, but do so > consistently). do not interpret logs and error messages (I doubt any MTA > says "that the other server returned"). > >> I do not send bounces. I reject them like the above. >> > > it actually looks like you do send bounces. if your postfix relays mail > to an internal server, you must configure postfix to reject unknown > recipients instead of accepting them and then bouncing. > > As I already said, show logs and 'postconf -n' for help.
===== I changed actual addresses. Here is the info I sent an email as g...@example.com to a...@lists.example.com g...@example.com is a google apps email that has been running for a year. a...@lists.example.com is the server I am trying to configure to do mailinglist email. Any and all input is appreciated. postconf -n alias_database = hash:/etc/postfix/aliases alias_maps = hash:${config_directory}/aliases,hash:/etc/mailman/aliases,hash:${config_directory}/turbopanel/aliases broken_sasl_auth_clients = yes command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/libexec/postfix debug_peer_level = 2 html_directory = no inet_interfaces = all mail_owner = postfix mailbox_size_limit = 104857600 mailbox_transport = lmtp:unix:/var/lib/imap/socket/lmtp mailq_path = /usr/bin/mailq.postfix manpage_directory = /usr/share/man message_size_limit = 104857600 mydestination = $myhostname,localhost.$mydomain,localhost myhostname = some.server.com myorigin = lists.example.com newaliases_path = /usr/bin/newaliases.postfix owner_request_special = no queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES recipient_delimiter = + relayhost = k2smtpout.secureserver.net sample_directory = /usr/share/doc/postfix-2.3.3/samples sender_canonical_maps = hash:${config_directory}/sender_canonical,hash:${config_directory}/turbopanel/sender_canonical sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination smtpd_sasl_auth_enable = yes smtpd_sasl_security_options = noanonymous smtpd_tls_CAfile = ${config_directory}/ssl/post.pem smtpd_tls_auth_only = no smtpd_tls_cert_file = ${config_directory}/ssl/post.pem smtpd_tls_key_file = ${config_directory}/ssl/post.pem smtpd_tls_loglevel = 3 smtpd_tls_received_header = yes smtpd_tls_session_cache_timeout = 3600s smtpd_use_tls = yes tls_random_exchange_name = /var/run/prng_exch tls_random_source = dev:/dev/urandom unknown_local_recipient_reject_code = 550 virtual_alias_domains = lists.example.com virtual_alias_maps = hash:${config_directory}/virtual_alias,hash:/etc/mailman/virtual-mailman,hash:${config_directory}/turbopanel/virtual_alias virtual_mailbox_domains = hash:${config_directory}/virtual_domains,hash:${config_directory}/turbopanel/virtual_domains virtual_transport = lmtp:unix:/var/lib/imap/socket/lmtp and the message back ===== Delivered-To: g...@example.com Received: by 10.142.187.9 with SMTP id k9cs1515614wff; Fri, 16 Jan 2009 08:53:44 -0800 (PST) Received: by 10.142.214.11 with SMTP id m11mr1114264wfg.125.1232124824570; Fri, 16 Jan 2009 08:53:44 -0800 (PST) Return-Path: <> Received: by 10.142.214.11 with SMTP id m11mr1349234wfg.125; Fri, 16 Jan 2009 08:53:44 -0800 (PST) Message-ID: <000e0cd2e61c7ccba204609c6...@googlemail.com> From: Mail Delivery Subsystem <mailer-dae...@googlemail.com> To: g...@example.com Subject: Delivery Status Notification (Failure) Date: Fri, 16 Jan 2009 08:53:44 -0800 (PST) This is an automatically generated Delivery Status Notification Delivery to the following recipient failed permanently: a...@list.example.com Technical details of permanent failure: Google tried to deliver your message, but it was rejected by the recipient domain. We recommend contacting the other email provider for further information about the cause of this error. The error that the other server returned was: 550 550 5.1.1 <a...@list.example.com>: Recipient address rejected: User unknown in virtual alias table (state 14). ----- Original message ----- MIME-Version: 1.0 Received: by 10.142.214.11 with SMTP id m11mr1114257wfg.125.1232124824013; Fri, 16 Jan 2009 08:53:44 -0800 (PST) Date: Fri, 16 Jan 2009 10:53:43 -0600 Message-ID: <2784d7ed0901160853i7359a18en79e792319e833...@mail.gmail.com> Subject: to a...@list From: Gary <g...@example.com> To: a...@list.example.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit test ----- End of message ----- and from the logs ===== Jan 16 09:53:44 ip-97-74-64-229 postfix/smtpd[7714]: connect from wf-out-1314.google.com[209.85.200.170] Jan 16 09:53:44 ip-97-74-64-229 postfix/smtpd[7714]: NOQUEUE: reject: RCPT from wf-out-1314.google.com[209.85.200.170]: 550 5.1.1 <arf @list.example.com>: Recipient address rejected: User unknown in virtual alias table; from=<g...@example.com> to=<a...@list.example.com> proto=ES MTP helo=<wf-out-1314.google.com> Jan 16 09:53:44 ip-97-74-64-229 postfix/smtpd[7714]: disconnect from wf-out-1314.google.com[209.85.200.170] ===== > >> sooo >> It's a bad idea to mess with the rejection message. Thanks again. >> >> Gary > >