On 07/08/2010 05:42 PM, Teh Kim Chooi wrote:
Hi,

i have disable local delivery follow the document instruction, then i enable 2 user in the virtual file but not able to send to these users.

Jul 8 22:57:07 smtp2 postfix/error[9618]: 3E7C82BE8004: to=<postmas...@xxx.xxx.com <mailto:postmas...@xxx.xxx.com>>, orig_to=<postmaster>, relay=none, delay=0.01, delays=0/0/0/0, dsn=5.0.0, status=bounced (local mail delivery is disabled) Jul 8 22:57:07 smtp2 postfix/bounce[9619]: warning: 3E7C82BE8004: undeliverable postmaster notification discarded
Jul  8 22:57:07 smtp2 postfix/qmgr[9611]: 3E7C82BE8004: removed
Jul 8 22:57:07 smtp2 postfix/cleanup[9617]: 3FC532BE8002: message-id=<20100708145707.3fc532be8...@smtp2.ytlcomms.com <mailto:20100708145707.3fc532be8...@smtp2.ytlcomms.com>> Jul 8 22:57:07 smtp2 postfix/qmgr[9611]: 3FC532BE8002: from=<double-bou...@xxx.xxx.com <mailto:double-bou...@xxx.xxx.com>>, size=5541, nrcpt=1 (queue active) Jul 8 22:57:07 smtp2 postfix/bounce[9620]: 3E1DA2BE8003: postmaster non-delivery notification: 3FC532BE8002
Jul  8 22:57:07 smtp2 postfix/qmgr[9611]: 3E1DA2BE8003: removed
Jul 8 22:57:07 smtp2 postfix/error[9618]: 3FC532BE8002: to=<postmas...@xxx.xxx.com <mailto:postmas...@xxx.xxx.com>>, orig_to=<postmaster>, relay=none, delay=0, delays=0/0/0/0, dsn=5.0.0, status=bounced (local mail delivery is disabled) Jul 8 22:57:07 smtp2 postfix/bounce[9620]: warning: 3FC532BE8002: undeliverable postmaster notification discarded
Jul  8 22:57:07 smtp2 postfix/qmgr[9611]: 3FC532BE8002: removed

[r...@smtp2 postfix]# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
local_recipient_maps =
local_transport = error:local mail delivery is disabled
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydomain = xxx.com <http://xxx.com>
myhostname = xxx.xxx.com <http://xxx.xxx.com>
mynetworks = 0.0.0.0/0 <http://0.0.0.0/0>
myorigin = $myhostname
newaliases_path = /usr/bin/newaliases.postfix
notify_classes = bounce, delay, resource, software
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
relay_domains = xxx.net <http://xxx.net>, abc.my
sample_directory = /usr/share/doc/postfix-2.3.3/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_bind_address = 192.168.1.141
smtpd_client_restrictions = permit_mynetworks, check_client_access hash:/etc/postfix/access, reject_unauth_destination smtpd_sender_restrictions = check_sender_access hash:/etc/postfix/access, reject
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
virtual_alias_maps = hash:/etc/postfix/virtual

[r...@smtp2 postfix]# tail virtual
#
# AUTHOR(S)
#        Wietse Venema
#        IBM T.J. Watson Research
#        P.O. Box 704
#        Yorktown Heights, NY 10598, USA
#
# VIRTUAL(5)
root    r...@localhost
postmaster postmas...@xxx.xxx.com <mailto:postmas...@xxx.xxx.com>

i do comment out local in the master.cf <http://master.cf> file.

From the document, i should be able to send email to root or postmaster, but i cant, do i miss out something ?

Regards,
Teh


Yes.
You have disabled all local delivery, which means that r...@localhost is not a valid address. And you have no virtual_mailbox_maps, so nothing (NOTHING) can be delivered locally, on this machine. nothing. at all.

J.

Reply via email to