Mailman + Postfix: неизвестный пользователь

1849
Valentin Iovene

Я настроил postfix + dovecot и знаю, что хочу получать списки рассылки. Я решил установить mailman.

Все работает, за исключением того, что я не могу отправлять электронные письма в свой список рассылки (и это очень важно, не правда ли?).

Когда я отправляю письмо в свой список рассылки (test@too.gy), я получаю ответ «Недоставленная почта, возвращенная отправителю»:

This is the mail system at host too.gy.  I'm sorry to have to inform you that your message could not be delivered to one or more recipients. It's attached below.  For further assistance, please send mail to postmaster.  If you do so, please include this problem report. You can delete your own text from the attached returned message.  The mail system  <test@too.gy>: unknown user: "test@too.gy" 

Кажется, что postfix пытается аутентифицировать мой адрес в списке рассылки, который, очевидно, не зарегистрирован в базе данных пользователей postfix.

Но я следовал инструкциям во время установки, и я не понимаю, почему это происходит. Я просмотрел все списки рассылки, которые я нашел, обсуждая этот вопрос, и он все еще не работает. И вот я здесь.

Вот мой postconf -nвывод:

alias_database = $alias_maps alias_maps = hash:/etc/postfix/aliases, hash:/var/lib/mailman/data/aliases broken_sasl_auth_clients = yes command_directory = /usr/bin config_directory = /etc/postfix daemon_directory = /usr/lib/postfix data_directory = /var/lib/postfix debug_peer_level = 2 debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5 html_directory = no inet_protocols = ipv4 local_recipient_maps = $virtual_mailbox_maps $alias_maps local_transport = virtual mail_owner = postfix mailq_path = /usr/bin/mailq manpage_directory = /usr/share/man mydestination = localhost, too.gy mydomain = too.gy myhostname = too.gy mynetworks_style = host myorigin = $mydomain newaliases_path = /usr/bin/newaliases queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/postfix recipient_delimiter = + relay_domains = * sample_directory = /etc/postfix/sample sendmail_path = /usr/bin/sendmail setgid_group = postdrop smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination smtpd_sasl_auth_enable = yes smtpd_sasl_local_domain = $mydomain smtpd_sasl_path = /var/run/dovecot/auth-client smtpd_sasl_security_options = noanonymous smtpd_sasl_tls_security_options = $smtpd_sasl_security_options smtpd_sasl_type = dovecot smtpd_tls_auth_only = yes smtpd_tls_cert_file = /etc/ssl/private/server.crt smtpd_tls_key_file = /etc/ssl/private/server.key smtpd_tls_loglevel = 1 transport_maps = hash:/etc/postfix/transport unknown_local_recipient_reject_code = 550 virtual_alias_maps = proxy:mysql:/etc/postfix/virtual_alias_maps.cf, hash:/var/lib/mailman/data/virtual-mailman virtual_gid_maps = static:5000 virtual_mailbox_base = /home/vmail virtual_mailbox_domains = proxy:mysql:/etc/postfix/virtual_domains_maps.cf virtual_mailbox_limit = 512000000 virtual_mailbox_maps = proxy:mysql:/etc/postfix/virtual_mailbox_maps.cf virtual_minimum_uid = 5000 virtual_transport = virtual virtual_uid_maps = static:5000 

И мой /etc/mailman/mm_cfg.py:

# -*- python -*-  ############################################### # Here's where we get the distributed defaults.  from Defaults import *  ################################################## # Put YOUR site-specific settings below this line.  DEFAULT_URL_HOST = 'lists.too.gy' DEFAULT_EMAIL_HOST = 'too.gy' MTA = 'Postfix'  VIRTUAL_HOSTS.clear() add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)  POSTFIX_STYLE_VIRTUAL_DOMAINS = ['too.gy']  DEFAULT_URL_PATTERN = 'http://%s/' PUBLIC_ARCHIVE_URL = 'http://%(hostname)s/archives/%(listname)s'  MAILMAN_SITE_LIST = 'mailman' 

ПОЛНЫЕ ПОСЛЕДОВАТЕЛЬНЫЕ ЛОГИ:

Mar 20 09:38:27 ks3100290 postfix/postfix-script[18843]: starting the Postfix mail system Mar 20 09:38:28 ks3100290 postfix/master[18845]: daemon started -- version 2.11.0, configuration /etc/postfix Mar 20 09:38:57 ks3100290 postfix/smtpd[18849]: connect from mail-pa0-f45.google.com[209.85.220.45] Mar 20 09:38:57 ks3100290 postfix/trivial-rewrite[18853]: warning: do not list domain too.gy in BOTH mydestination and virtual_mailbox_domains Mar 20 09:38:57 ks3100290 postfix/smtpd[18849]: 8829A2041F: client=mail-pa0-f45.google.com[209.85.220.45] Mar 20 09:38:57 ks3100290 postfix/cleanup[18857]: 8829A2041F: message-id=<532AA8DC.8090203@gmail.com> Mar 20 09:38:57 ks3100290 postfix/qmgr[18847]: 8829A2041F: from=<tout.guy@gmail.com>, size=1768, nrcpt=1 (queue active) Mar 20 09:38:57 ks3100290 postfix/trivial-rewrite[18853]: warning: do not list domain too.gy in BOTH mydestination and virtual_mailbox_domains Mar 20 09:38:57 ks3100290 postfix/virtual[18858]: 8829A2041F: to=<test@too.gy>, relay=virtual, delay=0.57, delays=0.48/0.02/0/0.06, dsn=5.1.1, status=bounced (unknown user: "test@too.gy") Mar 20 09:38:57 ks3100290 postfix/cleanup[18857]: E9EC6207B8: message-id=<20140320083857.E9EC6207B8@too.gy> Mar 20 09:38:57 ks3100290 postfix/bounce[18861]: 8829A2041F: sender non-delivery notification: E9EC6207B8 Mar 20 09:38:57 ks3100290 postfix/qmgr[18847]: E9EC6207B8: from=<>, size=3443, nrcpt=1 (queue active) Mar 20 09:38:57 ks3100290 postfix/qmgr[18847]: 8829A2041F: removed Mar 20 09:38:58 ks3100290 postfix/smtpd[18849]: disconnect from mail-pa0-f45.google.com[209.85.220.45] Mar 20 09:39:08 ks3100290 postfix/smtpd[18849]: warning: hostname user.mvnet.at does not resolve to address 85.255.155.158 Mar 20 09:39:08 ks3100290 postfix/smtpd[18849]: connect from unknown[85.255.155.158] Mar 20 09:39:08 ks3100290 postfix/trivial-rewrite[18853]: warning: do not list domain tOo.gY in BOTH mydestination and virtual_mailbox_domains Mar 20 09:39:08 ks3100290 postfix/smtpd[18849]: NOQUEUE: reject: RCPT from unknown[85.255.155.158]: 550 5.1.1 <EzRK0Vzs47@tOo.gY>: Recipient address rejected: User unknown in local recipient table; from=<EzRK0Vzs47@user.mvnet.at> to=<EzRK0Vzs47@tOo.gY> proto=ESMTP helo=<user.mvnet.at> Mar 20 09:39:08 ks3100290 postfix/smtpd[18849]: disconnect from unknown[85.255.155.158] Mar 20 09:39:28 ks3100290 postfix/smtp[18862]: E9EC6207B8: to=<tout.guy@gmail.com>, relay=gmail-smtp-in.l.google.com[173.194.67.27]:25, delay=31, delays=0.03/0.02/30/0.57, dsn=2.0.0, status=sent (250 2.0.0 OK 1395304718 ba4si773777wjc.22 - gsmtp) Mar 20 09:39:28 ks3100290 postfix/qmgr[18847]: E9EC6207B8: removed 
2

1 ответ на вопрос

0
clement

Вы mailmanправильно включили псевдонимы alias_maps = hash:/etc/postfix/aliases, hash:/var/lib/mailman/data/aliases. Но ты перезаписал свой local_recipient_maps. Просто измените ваш local_recipient_mapsследующий main.cf, потому что местные получатели будут искать в local_recipient_maps.

local_recipient_maps = $virtual_mailbox_maps $alias_maps 
Эй, спасибо за ответ. Я сделал именно то, что вы сказали, перезапустил постфикс, но у меня все та же проблема. : / Valentin Iovene 10 лет назад 0
Можете ли вы вставить строки журнала, созданные postfix? clement 10 лет назад 0
Я добавил строки журнала. Также поместите результат `` postconf -n``. Спасибо за помощь. Valentin Iovene 10 лет назад 0
См. Too.gy также в списке mydestination и virtual_mailbox_domains. Исправьте это сначала. Удалите `too.gy` из` virtual_mailbox_domains`. Поэтому `postmap -q too.gy mysql: / etc / postfix / virtual_domains_maps.cf` не должен возвращать никакого вывода. clement 10 лет назад 1
Я следовал инструкциям на ArchWiki: https://wiki.archlinux.org/index.php/Simple_Virtual_User_Mail_System#Postfix. Похоже, что `` postmap -q too.gy mysql: / etc / postfix / virtual_domains_maps.cf`` должен возвращать мои домены, как и для них: / И я исправил это, поставив `` mydestination = localhost``. У меня нет предупреждения, но оно все еще не работает. Тем не менее, письма из любого места на мои адреса, созданные с помощью администратора postfix, работают. Это только с почтальоном, что он не работает. Valentin Iovene 10 лет назад 0

Похожие вопросы