Koozali.org: home of the SME Server

email delegation problem

NicR

email delegation problem
« on: July 10, 2003, 07:37:44 AM »
Hi, does anyone know what/where the controls/locals file is ?

I'm using SME 5.5 to act as a gateway for a satellite feed with a dial up account as the uplink (the gateway has a live IP number  for the modem/satcard and a 10.x.x.x. on the NIC).  I've set up a Redhat server on internal lan (also with a 10.x.x.x IP number, the redhat server is listed as a local hostname using the SME server-manager) to act as an authenticating Proxy server and Mail server.  

My problem is that I can't seem to get email delegation to work.  
 
When I don't set the delegation I recieve mail to a test account fine, however when I set the address of the delegate server (10.x.x.x) I get the following error bounced after a delay of about a day, and an equivalent is posted in the mail log:
*
Hi. This is the qmail-send program at sgsc.vic.edu.au.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

:

Sorry. Although I'm listed as a best-preference MX or A for that host,
it isn't in my control/locals file, so I don't treat it as local. (#5.4.6)
*

I organised for a dummy subdomain test.sgsc.vic.edu.au to point to my gateway address to use whilst my actual domain is being pointed to an external mail server, however I need to bring this inhouse very soon (ISP gone out of bussiness).

If I can't sort this out soon I'll have to resort to using duplicate accounts on the SME server and forwarding it on or something.

NicR

Re: email delegation problem
« Reply #1 on: July 18, 2003, 04:36:07 AM »
Problem solved.

The issue was with the RedHat server not the SME.  Although the logs didn't seem to show it the mail was being delegated but refused by the Redhat.( I determined this by setting up an old mac with EIMS from eudora and it happily accepted delegated mail)

Redhat uses sendmail and from versions 7.1 and on, sendmail is crippled to only receive mail from the local host.  This can be fixed by installing the sendmail-cf rpm and commenting out the line DAEMON_OPTIONS(Port=smtp,Addr=127.0.0.1, Name=MTA') in the sendmail.mc file.

refer to : http://www.sendmail.org/faq/section5.html#5.3.1.3

note be careful you don't also allow sendmail to act as an open relay as this is activated by default in some sendmail.mc configs.  Look for FEATURE(accept_unresolvable_domains') towards the end of the file and comment this out.


An even better solution is to install qmail, like I will as soon as I find the time, or use the mail features on the SME server which are superior: with qmail, horde and imp, unfortunately this option isn't appropriate for my site/circumstances.