ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] Postfix + Maildrop + /etc/passwd
@ 2003-05-22  9:48 Прокопьев Евгений
  2003-05-22 10:36 ` Прокопьев Евгений
  2003-05-22 12:00 ` Dmitry Lebkov
  0 siblings, 2 replies; 4+ messages in thread
From: Прокопьев Евгений @ 2003-05-22  9:48 UTC (permalink / raw)
  To: community

Здравствуте!

Все не так легко как я думал.

В main.cf написано

local_recipient_maps = $alias_maps, unix:passwd.byname, 
hash:/etc/courier-imap/userdb

и

fallback_transport = maildrop

Почта доставляется пользователям, прописанным в только в 
/etc/courier-imap/userdb, а вот пользователям из /etc/passwd она не 
доставляется. Если на приходит с другого SMTP, то происходит следующее:

May 22 13:21:51 ugtovar postfix/smtpd[30245]: reject: RCPT from 
rmts.donpac.ru[195.161.172.86]: 550 <tatiana@ugtovar.ru>: User unknown; 
from=<john@rmts.donpac.ru> to=<tatiana@ugtovar.ru>

А приходящая локально просто зависает в очереди:

May 22 13:40:45 ugtovar postfix/pickup[30991]: 9CA5019B8: uid=0 from=<root>
May 22 13:40:45 ugtovar postfix/cleanup[31003]: 9CA5019B8: 
message-id=<20030522094045.9CA5019B8@ugtovar.ru>
May 22 13:40:45 ugtovar postfix/qmgr[30992]: 9CA5019B8: 
from=<root@ugtovar.ru>, size=275, nrcpt=1 (queue active)

Вот mailq:

-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
9CA5019B8 *     275 Thu May 22 13:40:45  root@ugtovar.ru
                                          tatiana@ugtovar.ru

-- 0 Kbytes in 1 Request.

Вот postconf -n:

alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
allow_mail_to_commands = alias
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
default_privs = postman
default_transport = smtp
disable_vrfy_command = yes
fallback_transport = maildrop
local_recipient_maps = $alias_maps, unix:passwd.byname, 
hash:/etc/courier-imap/userdb
mail_owner = postfix
mailbox_command = /usr/bin/maildrop-userdb -d $LOGNAME
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
mydestination = localhost, $myhostname, localhost.$mydomain, 
$config_directory/mydestination
mynetworks = $config_directory/mynetworks
newaliases_path = /usr/bin/newaliases
notify_classes = policy,protocol,resource,software
queue_directory = /var/spool/postfix
readme_directory = /etc/postfix/README_FILES
sample_directory = /etc/postfix/samples
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP $mail_name
smtpd_client_restrictions = permit_mynetworks,  reject_unknown_client, 
reject_invalid_hostname,  reject_unknown_hostname, 
reject_unknown_sender_domain,  reject_non_fqdn_hostname, 
reject_non_fqdn_sender
smtpd_etrn_restrictions = permit_mynetworks, reject
smtpd_helo_required = yes
smtpd_sender_restrictions = hash:/etc/postfix/access

Как бороться с пользователями из /etc/passwd, если не хочется 
прописывать их в userdb?

-- 
С уважением, Прокопьев Евгений



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-05-23  4:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-22  9:48 [Comm] Postfix + Maildrop + /etc/passwd Прокопьев Евгений
2003-05-22 10:36 ` Прокопьев Евгений
2003-05-22 12:00 ` Dmitry Lebkov
2003-05-23  4:51   ` Прокопьев Евгений

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git