Koozali.org: home of the SME Server

Qmail forward to same domainname

Cor-Jan Bouman

Qmail forward to same domainname
« on: October 12, 2000, 01:32:31 AM »
Hi all,

I'm using e-smith 4.0 at two locations for office use. It work's perfect. With exeption of sending e-mail. At these locations I used the same domainname. When sending e-mail to other users (with a different domainname) there are no problems.

But when i want to send e-mail to a college (at the other office, but with the same domainname) the mail doesn't get transferd to the ISP.

All the POP3 mailboxes exist on an internet server. This is because the are al couple of people who are not often at the office.

I changed the .qmail-default file in the alias folder to forward the e-mail to the internet. The file containd |forward "$LOCAL"@domainname.com. The domainname is the correct domain. When using ./qmail-qread the message doesn't get in the outgoing queue.

Does anybody have an solution to this problem. We must keep the same domainname and the pop3 boxes on the internet.

Regards,

Cor-Jan Bouman

Gordon Rowell

RE: Qmail forward to same domainname
« Reply #1 on: October 12, 2000, 02:07:04 AM »
Cor-Jan Bouman wrote:

> [...]
> But when i want to send e-mail to a college (at the other
> office, but with the same domainname) the mail doesn't get
> transferd to the ISP.

Ccorrect - it is treated as local since it is for the local domain.

What would happen if your two offices had the same phone number?
How would you call the other office?

> All the POP3 mailboxes exist on an internet server. This is
> because the are al couple of people who are not often at the
> office.

I'd suggest looking at installing one of the webmail packages
and moving the mail to one of your e-smith servers.

> I changed the .qmail-default file in the alias folder to
> forward the e-mail to the internet. The file containd |forward
> "$LOCAL"@domainname.com. The domainname is the
> correct domain. When using ./qmail-qread the message doesn't
> get in the outgoing queue.

Once again true - it will be treated as local.

> Does anybody have an solution to this problem.

Not as it stands. You are effectively asking the mail system to
treat mail for a domain as being both local and remote. It can't do
that. You can do something ugly on a per-user basis, but having the
same domain at both sites will cause you a lot of pain.

> We must keep the same domainname

Any solution which uses the same domainname at both sites will
be prone to weird and wonderful failures which will be hard to
diagnose.

> and the pop3 boxes on the internet.

Not if you install a webmail package on the e-smith server.

The other alternative is to set up each e-smith box in a subdomain
of your normal domain. Mail for the top-level domain will go to the
ISP, but mail for the subdomains will go to the e-smith boxes. But this
would remove one of the major benefits of having local mail
delivery.

Gordon