Koozali.org: home of the SME Server

backup mx

Holger

backup mx
« on: February 11, 2003, 11:00:19 PM »
Hi

Is smtpd different for 5.5 and 5.6 than it was for 5.1.2?

I want to setup a a backup mail relay for a friend which means:
1 - I have to allow relaying to his domain
2 - I have to have a loong timeout for mail to him - 1 week or something
3 - He has to set up a secondary MX record

Now, I found the answer to the first part in:
http://forums.contribs.org/index.php?topic=4004.msg13819#msg13819
Except it is for 5.1.2 and I have 5.5 (soon 5.6). I could not find the files in question, which leads me to believe that the mechanism has changed.

I can find nothing about the second part.

Third part: no problem.

Any and all help would be appreciated  :)

Holger

Bill Talcott

Re: backup mx
« Reply #1 on: February 11, 2003, 11:42:38 PM »
Yes, >=5.5 use mailfront, which is why Nathan's pop-before-smtp no longer works as well...

Holger

Re: backup mx
« Reply #2 on: February 12, 2003, 12:09:22 AM »
Thanx!

Is it correct that mailfront uses:
/var/qmail/control/rcpthosts
???

And that this is the one I should add my friends domain to? (through templates of course)

How about the second part?

Holger

Re: backup mx
« Reply #3 on: February 12, 2003, 12:38:20 AM »
Is this correct and sufficient?:
---------------------------------------
cd /etc/e-smith/templates-custom/
mkdir -p etc/tcprules/tcp.smtp
cd etc/tcprules/tcp.smtp
emacs 85AllowMyFriendsDomain

# Add a line like this with the domain you want to allow and save the file:

:allow


/sbin/e-smith/expand-template /var/spool/smtpd/etc/tcprules/tcp.smtp

# Then

cd /etc/e-smith/templates-custom/
mkdir -p var/qmail/control/rcpthosts
cd var/qmail/control/rcpthosts
emacs 85AllowMyFriendsDomain

# Add a line like this with the domain you want to allow and save the file:

myfriend.tld


/sbin/e-smith/expand-template /var/qmail/control/rcpthosts