PDA

View Full Version : about postfix


flourishing
10th December 2005, 16:25
make me crazy .
i have enabled maidir in managemnet-server-setting.
and
/etc/postfix/virtusertable
/etc/postfix/local-host-names

and here is the file virtusertable and local-host-name

##################################
#
# ISPConfig virtusertable Configuration File
# Version 1.0
#
###################################
hello@test.jmugs981.org web1_hello
web1_hello@test.jmugs981.org web1_hello
#### MAKE MANUAL ENTRIES BELOW THIS LINE! ####
~

and user hello is there.

this is the file local-host-name
###################################
#
# ISPConfig local-host-names Configuration File
# Version 1.0
#
###################################
localhost
freelamp
localhost.freelamp
test.jmugs981.org
#### MAKE MANUAL ENTRIES BELOW THIS LINE! ####
jmugs981.org
~

jmugs981.org is there too.

and now send a mail from jiangpeirong@qingdao.gov.cn
this is the maillog
Dec 10 22:37:09 freelamp postfix/smtpd[1824]: connect from unknown[202.110.193.28]
Dec 10 22:37:10 freelamp postfix/smtpd[1824]: NOQUEUE: reject: RCPT from unknown[202.110.193.28]: 550 <hello@jmugs981.org>: Recipient address rejected: User unknown in local recipient table; from=<jiangpeirong@qingdao.gov.cn> to=<hello@jmugs981.org> proto=ESMTP helo=<mx2.qingdao.cn>
Dec 10 22:37:10 freelamp postfix/smtpd[1824]: disconnect from unknown[202.110.193.28]

here is the Undelivered Mail Returned to Sender msg

<hello@jmugs981.org>: host jmugs981.org[211.144.137.88] said: 550
<hello@jmugs981.org>: Recipient address rejected: User unknown in local
recipient table (in reply to RCPT TO command)
and check the hello mail . got nothing. send mail out is ok.

and here is the main.cf , i also foud two lines

virtual_maps = hash:/etc/postfix/virtusertable

mydestination = /etc/postfix/local-host-names

what 's problem????

till
10th December 2005, 16:33
1) Delete the manual entry jmugs981.org in the local hostnames file.

2) Go in the ISPConfig interface and add a Co-Domain jmugs981.org (with empty hostname!) to the website test.jmugs981.org

falko
10th December 2005, 16:35
The problem is that you send mails to hello@jmugs981.org who isn't listed in /etc/postfix/virtusertable. You only have hello@test.jmugs981.org there...

flourishing
10th December 2005, 16:51
i did as you guys said.

now here is my virtusertables
###################################
#
# ISPConfig virtusertable Configuration File
# Version 1.0
#
###################################
hello@test.jmugs981.org web1_hello
web1_hello@test.jmugs981.org web1_hello
hello@jmugs981.org web1_hello
web1_hello@jmugs981.org web1_hello
#### MAKE MANUAL ENTRIES BELOW THIS LINE! ####

and here is the local -host name
###################################
#
# ISPConfig local-host-names Configuration File
# Version 1.0
#
###################################
localhost
freelamp
localhost.freelamp
test.jmugs981.org
jmugs981.org
#### MAKE MANUAL ENTRIES BELOW THIS LINE! ####


but can't receive any mail too.

here is the mail jiangpeirong@qingdao.gov.cn returned msg.

This is the Postfix program at host mail.jmugs981.org.

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

<web1_hello@mail.jmugs981.org > (expanded from <hello@jmugs981.org >): mail for
mail.jmugs981.org loops back to myself



Powered by MessageSoft SMG

Reporting-MTA: dns; mail.jmugs981.org
X-Postfix-Queue-ID: C206D34588
X-Postfix-Sender: rfc822; jiangpeirong@qingdao.gov.cn
Arrival-Date: Sat, 10 Dec 2005 23:10:58 +0800 (CST)

Final-Recipient: rfc822; web1_hello@mail.jmugs981.org
Original-Recipient: rfc822; hello@jmugs981.org
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; mail for mail.jmugs981.org loops back to myself

------------------------------------------------------------
From: "jiangpeirong" <jiangpeirong@qingdao.gov.cn >
To: "hello" <hello@jmugs981.org >
Subject:
Date: Sat10 Dec 2005 22:48:04 +0800

feee



d
jiangpeirong
2005-12-10

------------------------------------------------------------

falko
10th December 2005, 17:08
<web1_hello@mail.jmugs981.org > (expanded from <hello@jmugs981.org >): mail for
mail.jmugs981.org loops back to myself

Put mail.jmugs981.org at the end of /etc/postfix/local-host-names (in a new line after #### MAKE MANUAL ENTRIES BELOW THIS LINE! ####) and restart Postix.

flourishing
10th December 2005, 17:14
now it works . thank you very much . especially for your patience.