У меня вот такая задача - надо настроить сервер рассылок.
Стоит postfix , dovecot, mailmanОн у меня не берет данные о адресе рассылки из mailmana
Вот ошибка в логе Aug 13 08:28:20 mail dovecot: auth-worker(2974): sql(clinic@domen.ru): unknown user
Aug 13 08:28:19 mail postfix/smtpd[2970]: connect from unknown[172.18.13.26]
Aug 13 08:28:20 mail postfix/smtpd[2970]: 2315661FC5: client=unknown[172.18.13.26]
Aug 13 08:28:20 mail postfix/cleanup[2987]: 2315661FC5: message-id=<55CC2AF3.5080908@domen.ru>
Aug 13 08:28:20 mail postfix/qmgr[98006]: 2315661FC5: from=<serge.it@domen.ru>, size=991, nrcpt=1 (queue active)
Aug 13 08:28:20 mail postfix/smtpd[2970]: disconnect from unknown[172.18.13.26]
Aug 13 08:28:20 mail dovecot: auth-worker(2974): sql(clinic@domen.ru): unknown user
Aug 13 08:28:20 mail postfix/pipe[2988]: 2315661FC5: to=<clinic@domen.ru>, relay=dovecot, delay=0.19, delays=0.17/0.01/0/0.02, dsn=5.1.1, status=bounced (user unknown)
Aug 13 08:28:20 mail postfix/cleanup[2987]: 3BFAA61FF5: message-id=<20150813052820.3BFAA61FF5@mx1.domen.ru>
Aug 13 08:28:20 mail postfix/bounce[2990]: 2315661FC5: sender non-delivery notification: 3BFAA61FF5
Aug 13 08:28:20 mail postfix/qmgr[98006]: 3BFAA61FF5: from=<>, size=2792, nrcpt=1 (queue active)
Aug 13 08:28:20 mail postfix/qmgr[98006]: 2315661FC5: removed
Aug 13 08:28:20 mail dovecot: lda(serge.it@domen.ru): msgid=<20150813052820.3BFAA61FF5@mx1.domen.ru>: saved mail to INBOX
Aug 13 08:28:20 mail postfix/pipe[2988]: 3BFAA61FF5: to=<serge.it@domen.ru>, relay=dovecot, delay=0.02, delays=0.01/0/0/0.02, dsn=2.0.0, status=sent (delivered via dovecot service)
Aug 13 08:28:20 mail postfix/qmgr[98006]: 3BFAA61FF5: removed
Вот
Вот конфиг mailmana
/usr/local/mailman/Mailman/mm_cfg.py
MTA = 'Postfix'
SMTPHOST = 'mx1.domen.ru'
DEFAULT_EMAIL_HOST = 'domen.ru'
DEFAULT_URL_HOST = 'www.mailman.local'
DEFAULT_URL_PATTERN = 'http://%s/'
PUBLIC_ARCHIVE_URL = 'http://%(hostname)s/pipermail/%(listname)s'
IMAGE_LOGOS = '/mailman/icons/'
DEFAULT_CHARSET = 'koi8-r'
MTA = 'Postfix'
POSTFIX_STYLE_VIRTUAL_DOMAINS = ['domen.ru']
DEFAULT_SERVER_LANGUAGE = 'ru'
add_virtualhost('domen.ru')
VIRTUAL_HOST_OVERVIEW = Off
Вот конфиг постфикса
Код: Выделить всё
queue_directory = /var/spool/postfix
command_directory = /usr/local/sbin
daemon_directory = /usr/local/libexec/postfix
data_directory = /var/db/postfix
mail_owner = postfix
myhostname = mx1.domen.ru
mydomain = domen.ru
myorigin = $mydomain
inet_interfaces = 172.18.5.5, 127.0.0.1
smtp_bind_address = 172.18.5.5
proxy_interfaces = 1xx.2xx.1xx.24
unknown_local_recipient_reject_code = 550
recipient_delimiter = +
mynetworks_style = subnet
mynetworks = 127.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16
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
sendmail_path = /usr/local/sbin/sendmail
newaliases_path = /usr/local/bin/newaliases
mailq_path = /usr/local/bin/mailq
setgid_group = maildrop
html_directory = /usr/local/share/doc/postfix
manpage_directory = /usr/local/man
sample_directory = /usr/local/etc/postfix
readme_directory = /usr/local/share/doc/postfix
inet_protocols = ipv4
virtual_mailbox_domains = mysql:/usr/local/etc/postfix/virtual/domains.sql
virtual_mailbox_maps = mysql:/usr/local/etc/postfix/virtual/users.sql
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1
alias_maps = hash:/usr/local/mailman/data/aliases,
hash:/etc/mail/aliases,
virtual_alias_maps = hash:/usr/local/mailman/data/virtual-mailman,
mysql:/usr/local/etc/postfix/virtual/aliases.sql,
mysql:/usr/local/etc/postfix/virtual/groups.sql
virtual_alias_recursion_limit = 3
smtpd_helo_required = yes
disable_vrfy_command = yes
strict_rfc821_envelopes = yes
message_size_limit = 20971520
smtpd_recipient_restrictions =
permit_mynetworks
reject_unauth_destination
reject_non_fqdn_recipient
reject_non_fqdn_sender
reject_unknown_recipient_domain
reject_invalid_hostname
reject_multi_recipient_bounce
#check_sender_access mysql:/usr/local/etc/postfix/virtual/sender_maps.sql
check_policy_service inet:127.0.0.1:10023
permit_sasl_authenticated
permit
#reject
smtpd_sender_login_maps = mysql:/usr/local/etc/postfix/virtual/sender_maps.sql
вот часть файла /usr/local/mailman/data/aliases
clinic: "|/usr/local/mailman/mail/mailman post clinic"
clinic-admin: "|/usr/local/mailman/mail/mailman admin clinic"
clinic-bounces: "|/usr/local/mailman/mail/mailman bounces clinic"
clinic-confirm: "|/usr/local/mailman/mail/mailman confirm clinic"
clinic-join: "|/usr/local/mailman/mail/mailman join clinic"
clinic-leave: "|/usr/local/mailman/mail/mailman leave clinic"
clinic-owner: "|/usr/local/mailman/mail/mailman owner clinic"
clinic-request: "|/usr/local/mailman/mail/mailman request clinic"
clinic-subscribe: "|/usr/local/mailman/mail/mailman subscribe clinic"
clinic-unsubscribe: "|/usr/local/mailman/mail/mailman unsubscribe clinic"
# STANZA END: clinic
а вот часть файла /usr/local/mailman/data/virtual-mailman
# CREATED: Wed Aug 12 17:19:04 2015
clinic@domen.ru clinic
clinic-admin@domen.ru clinic-admin
clinic-bounces@domen.ru clinic-bounces
clinic-confirm@domen.ru clinic-confirm
clinic-join@domen.ru clinic-join
clinic-leave@domen.ru clinic-leave
clinic-owner@domen.ru clinic-owner
clinic-request@domen.ru clinic-request
clinic-subscribe@domen.ru clinic-subscribe
clinic-unsubscribe@domen.ru clinic-unsubscribe
# STANZA END: clinic
В /usr/local/etc/postfix/master.cf добавил такую строчку . postfix-to-mailman-2.1.py скачал отдельно
mailman unix - n n - - pipe
flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman-2.1.py
${nexthop} ${user}
Все равно не работает, что с ней что без нее
Посоветуйте пожалуйста в чем дело, на что обратить внимание.