Re: Relaying problem (kind of)
On Wed, Mar 17, 1999 at 05:14:20PM +0300, Anand Buddhdev wrote: > On Wed, Mar 17, 1999 at 02:06:27PM +0100, torben fjerdingstad wrote: > > > Things do not work quite as I expect. > > > > Say I am MX for domain inside.dk (this is not a real name). > > So, I put two lines into rcpthosts and HUP qmail-smtpd: > > Now mail to @inside.dk bounces: > > <[EMAIL PROTECTED]>: > > 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) > > That's the problem. You are are the best preference MX for inside.dk, and so > you must arrange for local delivery of the mail on this machine. Add > inside.dk to the control/locals file, and you should be OK. Remember to HUP > qmail-send after changing the locals file. But, if I did that, I would expect "user" to be treated as a local user on my mail relay which he is not. I cannot make that out of the FAQ. I thought control/locals was for aliases for the local host. I am sure you are right. Thanks very much. -- Med venlig hilsen / Regards Netdriftgruppen / Network Management Group UNI-C Tlf./Phone +45 35 87 89 41Mail: UNI-C Fax. +45 35 87 89 90 Bygning 304 E-mail: [EMAIL PROTECTED] DK-2800 Lyngby
Re: Relaying problem (kind of)
On Wed, Mar 17, 1999 at 02:06:27PM +0100, torben fjerdingstad wrote: > Things do not work quite as I expect. > > Say I am MX for domain inside.dk (this is not a real name). > So, I put two lines into rcpthosts and HUP qmail-smtpd: There's no qmail-smtpd to HUP. It is started each time a connection comes in, and it reads the control/rcpthosts file every time. > .inside.dk > inside.dk > > Right? Right. > Now mail to @inside.dk bounces: > <[EMAIL PROTECTED]>: > 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) That's the problem. You are are the best preference MX for inside.dk, and so you must arrange for local delivery of the mail on this machine. Add inside.dk to the control/locals file, and you should be OK. Remember to HUP qmail-send after changing the locals file. > Then I put an entry into smtproutes, like: > inside.dk:mailhost.inside.dk, and now it works. This will work, because mail for inside.dk is being treated as remote mail, and you are artificially routing it to mailhost.inside.dk. You will not need this entry after you add your domain to the locals file. -- System Administrator See complete headers for address, homepage and phone numbers
Relaying problem (kind of)
Things do not work quite as I expect. Say I am MX for domain inside.dk (this is not a real name). So, I put two lines into rcpthosts and HUP qmail-smtpd: .inside.dk inside.dk Right? Now mail to @inside.dk bounces: <[EMAIL PROTECTED]>: 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) Then I put an entry into smtproutes, like: inside.dk:mailhost.inside.dk, and now it works. I don't understand why I need to do that too. -- Med venlig hilsen / Regards Netdriftgruppen / Network Management Group UNI-C Tlf./Phone +45 35 87 89 41Mail: UNI-C Fax. +45 35 87 89 90 Bygning 304 E-mail: [EMAIL PROTECTED] DK-2800 Lyngby