Operating System - Linux
1827705 Members
2921 Online
109967 Solutions
New Discussion

mail relay from another domain?

 
Chowroc
Occasional Advisor

mail relay from another domain?

2 domains: zouben.org & dm02.org, zouben.org has SMTP Server: mail.zouben.org(postfix). now I want mail.zouben.org can relay mails for the hosts of dm02.org, what to do.

For example, when I use mutt + estmp, I can use a remote SMTP Server to deliver mail for me(Outlook Expree & Mozilla have this function). I have a mailbox on 163(USER@163.com), and I know its smtp.163.com, pop3.163.com, so I set my estmp like this:
~/.esmtprc
hostname=smtp.163.com:25
username="USERNAME"
password="PASSWORD"
~/.mutttc
set sendmail="/usr/bin/smtp -v -X ~/esmtp.log"
set envelope_from=yes
Now I can use smtp.163.com to deliver mail for me, it's very useful for PC. Does not smtp.163.com relay my mail?

But if I set hostname="mail.zouben.org:25" on HOST.dm02.org, it fails(if set on HOST.zouben.org, it's right) and report "relay access denied". I know I can set the 'relayhost' parameter of Postfix to make it to be a nullclient and to what esmtp do, but when I set the postfix on L02.dm02.org:
relayhost=[mail.zouben.org]
it still "relay access denied".

Later I built an sasl authentication, use saslauthd method with system account and have start 'saslauthd', it still can't relay.

I want to get the effect of the smtp.163.com, what must I do?

thanks.
2 REPLIES 2
Bill Thorsteinson
Honored Contributor

Re: mail relay from another domain?

I use Exim not postfix. However,
are you sure you don't want to add a second
local domain.

It appears you want local delivery for
two domains. This is not a relay situation.
Chowroc
Occasional Advisor

Re: mail relay from another domain?

I have achieve this by setting:

/etc/postfix/main.cf
smtpd_sasl_auth_enable = yes
smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject

and:
/usr/lib/sasl2/smtpd.conf
pwcheck_method: saslauthd

and start saslauthd:
/etc/init.d/saslauthd start

thanks