- 论坛徽章:
- 0
|
各位:
下午好。现在我公司的邮件系统遇到这样一个问题,会在maillog中提示找不到private/vuser这个目录。而vuser是我做虚拟域的用户
Oct 11 17:15:35 mail postfix/qmgr[1131]: B5E932150249: from=<fcyyior643hr@rotimi.com>, size=16117, nrcpt=2 (queue active)
Oct 11 17:15:35 mail postfix/qmgr[1131]: warning: connect to transport private/vuser: No such file or directory
postfix的配置文件如下:
[root@mail etc]# /usr/sbin/postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
always_bcc = storage@domain.com
bounce_queue_lifetime = 1d
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
enable_original_recipient = no
header_checks = regexp:/etc/postfix/header_checks
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
mail_name = Postfix - by domain.com
mail_owner = postfix
mailbox_size_limit = 20971520
mailq_path = /usr/bin/mailq
manpage_directory = /usr/local/man
maximal_queue_lifetime = 1d
message_size_limit = 20971520
mydestination = $mynetworks, $myhostname
mydomain = domain.com
myhostname = mail.domain.com
mynetworks = 127.0.0.1,192.168.0.8,192.168.0.11,192.168.0.37,192.168.0.202,192.168.0.6,192.168.0.3,192.168.0.16,192.168.0.15,192.168.9.49,192.168.0.39,192.168.0.19
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = no
recipient_bcc_maps = hash:/etc/postfix/recipient_bcc_maps.cf
sample_directory = /etc/postfix
sender_bcc_maps = hash:/etc/postfix/sender_bcc_maps.cf
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
show_user_unknown_table_name = no
smtp_tls_CAfile = /etc/postfix/certs/cacert.pem
smtp_tls_cert_file = /etc/postfix/certs/mail.domain.com.crt
smtp_tls_key_file = /etc/postfix/certs/mail.domain.com.key
smtpd_banner = $myhostname ESMTP $mail_name
smtpd_client_connection_count_limit = 120
smtpd_client_event_limit_exceptions = 127.0.0.1,59.xx.xx.xx,58.60.xx.xx
smtpd_client_restrictions = permit_mynetworks, permit_sasl_authenticated, check_client_access pcre:/etc/postfix/dspam_filter_access
smtpd_recipient_restrictions = check_recipient_access hash:/etc/postfix/send2allclass, check_sender_access mysql:/etc/postfix/mysql_virtual_localdomain_class_maps.cf, permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unauth_destination, reject_unauth_pipelining, reject
smtpd_restriction_classes = allow_send_alluser,only_send_localdomain
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $mydomain
smtpd_sasl_security_options = noanonymous
smtpd_sender_login_maps = mysql:/etc/postfix/mysql_virtual_sender_maps.cf, mysql:/etc/postfix/mysql_virtual_alias_maps.cf
smtpd_sender_restrictions = permit_mynetworks, reject_sender_login_mismatch, reject_authenticated_sender_login_mismatch, reject_unauthenticated_sender_login_mismatch
smtpd_starttls_timeout = 60s
smtpd_tls_CAfile = /etc/postfix/certs/cacert.pem
smtpd_tls_auth_only = no
smtpd_tls_cert_file = /etc/postfix/certs/mail.domain.com.crt
smtpd_tls_key_file = /etc/postfix/certs/mail.domain.com.key
smtpd_tls_loglevel = 3
smtpd_tls_received_header = yes
smtpd_use_tls = yes
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_mailbox_domains = domain.com
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_transport = maildrop:
[root@mail etc]#
postfix的MASTER配置文件如下:
[root@mail etc]# cat /etc/postfix/master.cf
#
# Postfix master process configuration file. For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").
#
# Do not forget to execute "postfix reload" after editing this file.
#
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - n - - smtpd
-o content_filter=lmtp:unix:/var/tmp/dspam.sock
smtp1025 inet n - n - - smtpd
# -o content_filter=lmtp:unix:/var/tmp/dspam.sock
smtp1125 inet n - n - - smtpd
# -o content_filter=lmtp:unix:/var/tmp/dspam.sock
#submission inet n - n - - smtpd
# -o smtpd_tls_security_level=encrypt
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticated,reject
# -o milter_macro_daemon_name=ORIGINATING
smtps inet n - n - - smtpd
-o smtpd_tls_wrappermode=yes
-o smtpd_sasl_auth_enable=yes
-o smtpd_client_restrictions=permit_sasl_authenticated,reject
# -o milter_macro_daemon_name=ORIGINATING
#628 inet n - n - - qmqpd
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - n 300 1 oqmgr
tlsmgr unix - - n 1000? 1 tlsmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
trace unix - - n - 0 bounce
verify unix - - n - 1 verify
flush unix n - n 1000? 0 flush
proxymap unix - - n - - proxymap
proxywrite unix - - n - 1 proxymap
smtp unix - - n - - smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay unix - - n - - smtp
-o smtp_fallback_relay=
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - n - - showq
error unix - - n - - error
retry unix - - n - - error
discard unix - - n - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil
scache unix - - n - 1 scache
maildrop unix - n n - - pipe
flags=DRhu user=vuser argv=/usr/local/bin/maildrop -w 90 -d ${user}@${nexthop} ${recipient} ${user} ${extension} {nexthop}
#
# ====================================================================
127.0.0.1:10025 inet n - n - - smtpd
-o content_filter=
-o receive_override_options=no_address_mappings,no_unknown_recipient_checks,no_header_body_checks
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_restriction_classes=
-o smtpd_client_restrictions=
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks=127.0.0.0/8
-o strict_rfc821_envelopes=yes
-o smtpd_error_sleep_time=0
-o smtpd_soft_error_limit=1001
-o smtpd_hard_error_limit=1000
# -o smtpd_authorized_xforward_hosts=127.0.0.0/8
#dspam unix - n n - - pipe
# flags=DRhu user=vuser argv=/usr/local/bin/dspam
# --client
# --deliver=innocent,spam
# --user ${recipient}
# --mail-from=${sender}
[root@mail etc]#
请帮助看看。
谢谢! |
|