請教aliases的問題 (使用Postfix + OpenLDAP + Cyrus Imapd)

這個版面主要討論 debian 在 server 端的應用問題, server 種類繁多..舉凡 Web Server 、 File Server、 DHCP Server..等等。

版主: 阿信

請教aliases的問題 (使用Postfix + OpenLDAP + Cyrus Imapd)

文章訪客 » 週二 2月 14, 2006 10:19 pm

我將user的帳號全部建在OpenLDAP中,MTA使用Postfix並搭配Cyrus Imapd提供imap與pop的service,使用者都能正常收發email,唯獨使用alias寄email時會有問題,postfix會reply一封notice的信給寄件人,告訴我隸屬這個maillist的使用者有可能沒收到信,但是事實上user確都有收到信,請問有學長們遇過這個問題嗎?!!

代碼: 選擇全部
Postfix reply的內容如下:

This is the Postfix program at host mail.hrjhotel.com.tw.

I'm sorry to have to inform you that your message could not be be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to <postmaster>

If you do so, please include this problem report. You can delete your own text from the attached returned message.

         The Postfix program

<xxxx@yyyy.com.tw> (expanded from <aaaa@yyyy.com.tw>): data format
    error. Command output: : Mailbox does not exist

<zzzz@yyyy.com.tw> (expanded from <aaaa@yyyy.com.tw>): data format
    error. Command output: : Mailbox does not exist


代碼: 選擇全部
main.cf的內容如下:

# See /usr/share/postfix/main.cf.dist for a commented, more complete version

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

myhostname = mail.yyyy.com.tw
mydomain = yyyy.com.tw
myorigin = /etc/mailname
mydestination = yyyy.com.tw, mail.yyyy.com.tw, localhost.yyyy.com.tw, localhost

mynetworks = 192.168.1.13/24, 192.168.0.0/24, 192.168.2.0/24, 192.168.7.0/24, 127.0.0.0/8
relayhost =

alias_maps = hash:/etc/aliases,ldap:/etc/postfix/ldap-aliases.cf
alias_database = hash:/etc/aliases
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all

mailbox_transport = lmtp:unix:/var/run/cyrus/socket/lmtp
local_transport = cyrus

lmtp_sasl_auth_enable = yes
lmtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
lmtp_sasl_security_options =
lmtp_destination_concurrency_limit = 100
lmtp_destination_recipient_limit = 0

virtual_alias_maps = hash:/etc/postfix/virtual-aliases.cf
訪客
 

文章訪客 » 週五 2月 17, 2006 4:57 pm

自問自答.......

在main.cf中加入:

<your_local_transport_name>_destination_recipient_limit = 1

這樣就解決了!!!
訪客
 


回到 debian server

誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 1 位訪客

cron