LINUX.ORG.RU

Сообщения DoMoney

 

Fetchmail не доставляет почту виртуальным пользователям

Форум — Admin

Всем привет. Подскажите настроил почтовый сервер с виртуальными пользователями: Почту забирает fetchmail, но она не доставляется, почтоый домен - gms.od.ua. Пожалуйста подскажите в чем может быть проблема.

В логах следующее:

SMTP error: 550 5.1.1 <tester@localhost>: Recipient address rejected:unknown in local recipient table

Конфиг fetchmail ниже:

set syslog;
set daemon 900;

poll pop3.eurocom.od.ua proto pop3
port 1110
user «user»
password «passsword»
flush #Before querry delete all read messages
fetchdomains gms.od.ua
is «*» = to «*»
no rewrite #don't rewrite headers
nokeep
fetchall

Конфигурация postfix:
# See /usr/share/postfix/main.cf.dist for a commented, more complete version

# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name. It's You again Sad
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate «delayed mail» warnings
delay_warning_time = 4h

readme_directory = no

# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for # information on enabling SSL in the smtp client.

myhostname = gms.od.ua
# alias_maps = hash:/etc/aliases
# alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = localhost
relayhost = mail.te.net.ua
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128, 192.168.1.0/24
mailbox_command = procmail -a «$EXTENSION»
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all

# This specifies where the virtual mailbox folders will be located.
virtual_mailbox_base = /var/vmail
# This is for the mailbox location for each user. The domainaliases # map allows us to make use of Postfix Admin's domain alias feature.
virtual_mailbox_maps = mysql:/etc/postfix/mysql_mailbox_maps.cf, mysql:/etc/postfix/mysql_mailbox_domainaliases_maps.cf
# and their user id
virtual_uid_maps = static:150
# and group id
virtual_gid_maps = static:8
# This is for aliases. The domainaliases map allows us to make # use of Postfix Admin's domain alias feature.
virtual_alias_maps = mysql:/etc/postfix/mysql_alias_maps.cf, mysql:/etc/postfix/mysql_alias_domainaliases_maps.cf
# This is for domain lookups.
virtual_mailbox_domains = mysql:/etc/postfix/mysql_domains_maps.cf

# Integration with other packages
# ---------------------------------------

# Tell postfix to hand off mail to the definition for dovecot in master.cf
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1

#SMTP relay
smtp_sasl_auth_enable=yes
smtp_sasl_password_maps=hash:/etc/postfix/sasl-passwords
smtp_sasl_security_options=

# Header manipulation
# --------------------------------------

# Getting rid of unwanted headers. See: https://posluns.com/guides/header-removal/
header_checks = regexp:/etc/postfix/header_checks
# getting rid of x-original-to
enable_original_recipient = no

# Use amavis for virus and spam scanning
# content_filter = amavis:[127.0.0.1]:10024

# Max message size
message_size_limit = 20000000

# how many address can be used in one message. # effective stopper to mass spammers, accidental copy in whole address list # but may restrict intentional mail shots. smtpd_recipient_limit = 16 # how many error before back off. smtpd_soft_error_limit = 3 # how many max errors before blocking it. smtpd_hard_error_limit = 12

 , ,

DoMoney
()

Сортировка почты

Форум — Admin

Всех привествую. В линуксе совсем недавно. Уже успел перечитать множество руководств. Цель: создать почтовый сервер для небольшой органищации - 15-20 компов. ОС: Ubuntu Испольщовал следующие программы: Postfix, Dovecot, Fetchmail, Procmail. Прием почты осуществляется через провайдера, а дальше должна происходить сортировка. Отправка почты через шлюз провайдера. Постфикс, довекот, фетчмеил настроил нормально - почта принимается, отправляется. Пользовтелей я использую локальных. Осталось проблема: не могу настроить сортировку, чтобы по приходу почты она перемещалась в ящик соответствующему пользователю (формат хранения почты Maildir)/ После приема почты, она просто никуда не попадает. У меня следующие вопросы: 1. В чем может быть загвостка на что обратить внимание? 2. ВОзможно ли настроить сортировку почты без procmail, если да, то как.

Заранее благодарен за ответ

DoMoney
()

RSS подписка на новые темы