A childhood friend of mine have this problem:
He can send mails to his mailing list server only with RoundCube, but
with another Client[Squirrelmail, Thunderbird, ClawsMail or Micro$oft
Outlook doesn´t], and I don´t know what´s happening. I post below his
main.cf. Mailman if configured and working, when you send a mail to a
list, postfix give a user "unknown error"[the user of the list], but
with RoundCube works as a sunshine. So I don´t know what might be
happening there.
I hope you can help me because the issue is tricky to me too.
<main.cf>
smtpd_banner = $myhostname ESMTP $mail_name Debian GNU/Linux
biff = no
# Appending domain is the MUA's job.
append_dot_mydomain = no
readme_directory = no
# Bounce template
bounce_template_file = /etc/postfix/warnings/bounce.msg
# Debug
debug_peer_level = 4
debug_peer_list = $mynetworks
# Net interfaces
inet_interfaces = all
inet_protocols = all
mynetworks_style = host
mynetworks = 127.0.0.0/8
relayhost = mx.mydomain.cu
myhostname = apolo.mydomain.cu
mydomain = mail.mydomain.cu
myorigin = $mydomain
masquerade_domain =
proxy:mysql:/etc/postfix/mysql/mysql_virtual_domains_maps.cf
relay_domain = proxy:mysql:/etc/postfix/mysql/mysql_virtual_domains_maps.cf
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/dovecot-auth
#smtpd_sasl_path = smtpd
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = yes
smtpd_helo_restrictions = permit_mynetworks, warn_if_reject,
reject_non_fqdn_hostname, permit_sasl_authenticated,
reject_unauth_destination
smtpd_sender_restrictions = reject_unauth_pipelining,
reject_unknown_sender_domain, reject_non_fqdn_sender,
hash:/etc/postfix/rules/spamaddrss
smtpd_recipient_restrictions = permit_mynetworks,
permit_auth_destination, permit_sasl_authenticated, permit_mx_backup,
reject_unauth_destination, reject_unlisted_recipient
smtpd_tls_auth_only = no
smtpd_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_CAfile = /etc/ssl/certs/cacert.pem
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_loglevel = 5
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
smtpd_helo_required = yes
disable_vrfy_command = yes
smtp_sasl_auth_enable = no
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_etrn_restrictions = reject
body_checks = pcre:/etc/postfix/rules/body_checks,
regexp:/etc/postfix/rules/avchk, pcre:/etc/postfix/rules/avchkre
header_checks = pcre:/etc/postfix/rules/header_checks,
pcre:/etc/postfix/rules/headerchkmsg
mime_header_checks = pcre:/etc/postfix/rules/mime_header_checks
smtpd_sender_login_maps = pcre:/etc/postfix/rules/sender_login_checks
smtp_mx_address_limit = 0
smtp_connect_timeout = 30
smtp_helo_timeout = 60s
smtp_rcpt_timeout = 240s
smtp_quit_timeout = 240s
smtp_rset_timeout = 20s
smtp_skip_4xx_greeting = yes
smtp_skip_5xx_greeting = yes
message_size_limit = 10485760
mailbox_size_limit = 10485760
recipient_delimiter = +
smtpd_recipient_limit = 25
dovecot_destination_recipient_limit = 1
maximal_queue_lifetime = 4d
delay_warning_time = 4h
smtpd_error_sleep_time = 1s
local_destination_concurrency_limit = 25
bounce_queue_lifetime = 4d
alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases
alias_database = hash:/etc/aliases
#mydestination = [He tried a lot of values here, but right now is empty,
and still strange the behavior]
transport_maps = hash:/etc/postfix/transport
mailman_destination_recipient_limit = 1
owner_request_special = no
virtual_mailbox_base = /home/vmail
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
virtual_transport = dovecot
virtual_alias_maps =
proxy:mysql:/etc/postfix/mysql/mysql_virtual_alias_maps.cf
virtual_mailbox_domains =
proxy:mysql:/etc/postfix/mysql/mysql_virtual_domains_maps.cf
virtual_mailbox_maps =
proxy:mysql:/etc/postfix/mysql/mysql_virtual_mailbox_maps.cf
show_user_unknown_table_name = no
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
mail_owner = postfix
default_privs = nobody
unknown_local_recipient_reject_code = 550
local_recipient_maps = $alias_maps, $virtual_mailbox_maps,
proxy:unix:passwd.byname
in_flow_delay = 1s
home_mailbox = Maildir/
mail_spool_directory = /var/spool/mail
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
mailbox_command = /usr/lib/dovecot/deliver
</main.cf>
<transport>
lists.mydomain.cu mailman:
</transport>
The error of the mail clients:
"An error occurred while sending mail. The mail server responded: 5.1.1
<mail...@lists.mydomain.cu>: Recipient address rejected: User unknown.
Please check the message recipient mail...@lists.mydomain.cu and try again."
Trying to help & learn,
Leslie.
Best regards...
Participe en la XVI Convención de Ingeniería y Arquitectura del
26 al 30 de noviembre de 2012.
Habana, Cuba: http://www.congresouniversidad.cu
Consulte la enciclopedia colaborativa cubana. http://www.ecured.cu