Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
postfix и доставка почты локально от системных служб
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Russian
View previous topic :: View next topic  
Author Message
Ivanich_
Tux's lil' helper
Tux's lil' helper


Joined: 10 Feb 2006
Posts: 104
Location: Ukraine, Odessa

PostPosted: Thu Jul 05, 2007 10:45 am    Post subject: postfix и доставка почты локально от Reply with quote

поставил и настроил постфикс:
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 просто все в один файл?
Back to top
View user's profile Send private message
koskh
n00b
n00b


Joined: 14 Jul 2007
Posts: 4

PostPosted: Sat Jul 14, 2007 4:09 am    Post subject: Reply with quote

погляди порядок проверки сендера
smtpd_sender_restrictions = permit_sasl_authenticated, permit_mynetworks...

и поставь permit_mynetworks перед permit_sasl
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Russian All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum