Ivanich_ Tux's lil' helper
Joined: 10 Feb 2006 Posts: 104 Location: Ukraine, Odessa
|
Posted: Thu Jul 05, 2007 10:45 am Post subject: postfix и доставка почты локально от |
|
|
поставил и настроил постфикс:
Code: | queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
smtpd_banner = $myhostname ESMTP service ready (Postfix Rulezzz!!!)
mail_owner = postfix
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases.db
#virtual_alias_maps = hash:/etc/postfix/virtual
myhostname = myhost
mydomain = myhost.org
myorigin = $mydomain
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
home_mailbox = Mailbox
local_destination_concurrency_limit = 2
local_recipient_maps = unix:passwd.byname $alias_maps
unknown_local_recipient_reject_code = 550
mynetworks_style = subnet
mynetworks = 192.168.144.0/24, 127.0.0.0/8
relay_domains = $mydestination
mailbox_transport = lmtp:unix:/var/imap/socket/lmtp
smtpd_sasl_auth_enable = yes
smtpd_sasl2_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain =
broken_sasl_auth_clients = yes
smtpd_client_restrictions = permit_sasl_authenticated, reject_unauth_destination, permit_mynetworks, reject_rbl_client bl.spamcop.net, reject_rbl_client list.dsbl.org,reject_rbl_client cbl.abuseat.org, reject_rbl_client relays.ordb.org, reject_rbl_client relays.ordb.org, permit
#new stuff
disable_vrfy_command = yes
smtpd_delay_reject = yes
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks, permit_sasl_authenticated, permit
smtpd_sender_restrictions = permit_sasl_authenticated, permit_mynetworks, permit
smtpd_recipient_restrictions = reject_unauth_pipelining, permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination, permit
#TLS
smtpd_use_tls=yes
#smtpd_tls_auth_only = yes
smtpd_tls_key_file = /etc/postfix/newreq.pem
smtpd_tls_cert_file = /etc/postfix/newcert.pem
smtpd_tls_CAfile = /etc/postfix/cacert.pem
smtpd_tls_loglevel = 3
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
debug_peer_level = 5
|
т.е вместо myhost.org настоящее доменное имя
Проблема в том что внешняя почта работает как надо а вот например локальная не хочет
Code: | Jul 5 13:34:53 [postfix/qmgr] 4BB96365150: removed
Jul 5 13:34:53 [postfix/lmtp] 533F03653A0: to=<root@myhost.org>, relay=[myhost.org/var/imap/socket/lmtp], delay=0.01, delays=0/0/0/0, dsn=5.1.1, status=bounced (myhost.org[/var/imap/socket/lmtp] said: 550-Mailbox unknown. Either there is no mailbox associated with this 550-name or you do not have authorization to see it. 550 5.1.1 User unknown (in reply to RCPT TO command))
Jul 5 13:34:53 [postfix/qmgr] 533F03653A0: removed
|
Т.е. если раньше до установки постфикса под рутом писал mail и оно выдавало всю локальную почту для рута, то сейчас там пусто и в логах вышенаписанное. Создавать пользователя root@myhost.org по нескольким причинам не хочу, как сделать чтоб постфикс принимал почту от демонов и всяких там служб и ложил например в /var/spool/mail/root просто все в один файл? |
|