[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: postfix can't send and receive mails



On Wed, 12 Nov 2008 14:57:54 +0800 (CST)
Stephen Liu <satimis@yahoo.com> wrote:

> 
> --- lee <lee@yun.yagibdah.de> wrote:
> 
> > On Tue, 11 Nov 2008 12:59:10 +0800 (CST)
> > Stephen Liu <satimis@yahoo.com> wrote:
> > 
> > > Nov 11 02:41:55 xen05 postfix/smtpd[3445]: NOQUEUE: reject: RCPT
> > from
> > > unknown[121.34.170.57]: 554 5.7.1 <mail@satimis.com>: Relay access
> > > denied; from=<mail@satimis.com> to=<mail@satimis.com> proto=ESMTP
> > > helo=<57.170.34.121.broad.sz.gd.dynamic.163data.com.cn>
> > > Nov 11 02:41:55 xen05 postfix/smtpd[3445]: lost connection after
> > RCPT
> > > from unknown[121.34.170.57]
> > > Nov 11 02:41:55 xen05 postfix/smtpd[3445]: disconnect from
> > > unknown[121.34.170.57]
> > 
> > > I have been googling a while without solution discovered.  The
> > cause
> > > is supposed to be no relay_domains defined.
> > 
> > > mysql> SELECT * from domains;
> > > +------+-----------------------+-----------+---------+
> > > | pkid | domain                | transport | enabled |
> > > +------+-----------------------+-----------+---------+
> > > |    1 | localhost             | virtual:  |       1 |
> > > |    2 | localhost.localdomain | virtual:  |       1 |
> > > |    3 | satimis.com.tld       | virtual:  |       1 |
> > > +------+-----------------------+-----------+---------+
> > > 3 rows in set (0.00 sec)
> > > 
> > > 
> > > Whether it just needs "satimis.com" dropping
> > ".tld"-top_level_domain ?
> > 
> > That seems about right. I don't know postfix, but it seems that
> > postfix
> > on <localhost> rejected to relay mail from <mail@satimis.com> to
> > <mail@satimis.com> and dropped the SMTP connection after the
> > recipient
> > (RCPT) was transmitted because the domain satimis.com is not one of
> > the
> > domains you configured postfix to relay mail for.
> 
> 
> Hi lee,
> 
> 
> # grep relayhost /etc/postfix/main.cf
> relayhost =
> 
> 
> > <Localhost>, I guess, is xen05.satimis.com, though I didn't see
> > where you allow postfix to handle mail for <localhost> other than in
> > "mydestination". If you have several hosts in the domain satimis.com
> > and
> > want postfix to relay mail for them, you will need to configure
> > postfix
> > to do so.
> > 
> > What I don't understand is why localhost, localhost.localdomain and
> > xen05.satimis.com are also listed as virtual mailbox domains: These
> > domains are not virtual?
> 
> 
> comment out that line 'mydestination';
> 
> 
> # grep mydestination /etc/postfix/main.cf
> #mydestination = xen05.satimis.com, localhost.satimis.com, , localhost
> 
> 
> Incoming mails are still rejected;


Commenting mydestination was a bad idea.
Insead of commenting, you should add satimis.com or replace
xen05.satimis.com and localhos.satimis.com by satimis.com.
Your log show relay access denied to mail@satimis.com. One of the
causes is that satimis.com is not in mydestination.

relayhost is used if you want route all mail to a server (eg your FAI's
server) and that server will route it to the mx. So, I suggest you to
put your FAI smtp server if you have home connection and your server do
not have a fqdn.

Hope it will help.

--
Tôba


Reply to: