Koozali.org: home of the SME Server

5.1.2 as Backup MX continues to bounce

ryan

5.1.2 as Backup MX continues to bounce
« on: April 12, 2002, 01:12:23 AM »
I have entered the domain for backup/acceptance in rcpthosts file.  The SME server still responds "relaying not allowed blah, blah, you have to find another server".  DNS records are set correctly.

Anyone know how to get 5.1.2 to accept email for another domain?

Daniel van Raay

Re: 5.1.2 as Backup MX continues to bounce
« Reply #1 on: April 12, 2002, 07:43:26 AM »
In SME 5.1.2, qmail is not responsible for accepting incoming SMTP traffic anymore.  Instead, obtuse smtpd is.  What you'll need to do is create a custom template for the /var/spool/smtpd/etc/smtpd_check_rules file that will allow the backed-up domain through.

Daniel van Raay

ryan

Re: 5.1.2 as Backup MX continues to bounce
« Reply #2 on: April 12, 2002, 07:04:40 PM »
Thanks Dan,

I am still a rookie.  Can anyone suggest which line I need to add the backup domain?

Thanks,

RS

Daniel van Raay

Re: 5.1.2 as Backup MX continues to bounce
« Reply #3 on: April 13, 2002, 08:49:07 AM »
Try this (note some line wrapping has probably occured):

[root@thebeast:/root]$ cd /etc/e-smith/templates-custom/
[root@thebeast:templates-custom]$ mkdir -p var/spool/smtpd/etc/smtpd_check_rules
[root@thebeast:templates-custom]$ cd var/spool/smtpd/etc/smtpd_check_rules/
[root@thebeast:smtpd_check_rules]$ pico 50AllowMyDomain

Add a line like so with the domain you want to allow and save the file:
allow:ALL:ALL:*.mycompany.xxx *@mycompany.xxx

[root@thebeast:smtpd_check_rules]$ /sbin/e-smith/expand-template /var/spool/smtpd/etc/smtpd_check_rules

Done.

Daniel van Raay

Geert Jansen

Re: 5.1.2 as Backup MX continues to bounce
« Reply #4 on: March 01, 2003, 04:31:16 PM »
Using the sme 5.1.2 server-gateway at two locations.
Location 1 domain1.xxx
Location 2 domain2.xxx

I want domain1.xxx to act as backup mx for domain2.xxx
The mx record for domain2.xxx has an mx enrty priority 10 pointing to mail.domain1.xxx

I have setup the smtp_checkrules as mentioned in your message.
Still i get 552 Relay denied for RCPT name@domain2.xxx on the mail.domain1.xxx
Both servers run AVMailgate, can that disturb the qmail settings?

Geert