Re: .qmail forwarding problem
Andrew Richards <ar-djblists <at> acrconsulting.co.uk>
2012-01-04 13:31:20 GMT
On Wednesday 04 January 2012 11:24:23 roseyq.20.ftumsh <at> xoxy.net wrote:
> This one has me stumped. The setup works and has done for years.
You have a somewhat confusing setup where some domains are handled by
control/locals, and others by control/virtualdomains. Unpicking this gives the
> The domains firstb2b.net and sf.firstb2b.net are both handled by the same
No they're not, see below.
> and all mails go into the Maildir, as per standard setup.
Yes, for different reasons.
> Here are the entries from the assign:
Will handle (support <at> ) sf.firstb2b.net (sf.firstb2b.net in
No 'dash' field given, so will look for files .qmailsupport or .qmaildefault for
any delivery instructions; if not found will deliver to a Maildir in that
directory (if Maildir is the default delivery instruction for qmail-send).
I suggest adding a 'dash' field to the above users/assign line, so instead of
':::' at the end you'd have ':-::'. Then qmail will look for .qmail-support or
.qmail-default which is a more typical qmail setup (use qmail-newu to update
users/cdb after editing).
Will handle support ( <at> firstb2b.net) (firstb2b.net in control/locals)
> If I send an email to:
> support <at> firstb2b.net or
> support <at> sf.firstb2b.net
> it ends up in the Maildir, as expected.
> However, if I add an address to .qmail, things don't work as expected.
> The address can be _any_ address and it still doesn't work.
> I've tried it with domains that I control and with a googlemail address.
> &foo <at> bar.com
> Now, if I send a mail to support <at> firstb2b.net, the mail ends up in the
> Maildir and is forwarded to foo <at> bar.com.
> However, if I send a mail to support <at> sf.firstb2b.net, the mail ends up
> in the Maildir, but is NOT forwarded to foo <at> bar.com.
In fact this looks for .qmailsupport, .qmaildefault; neither found, assumes
default delivery of Maildir (qmail-send startup argument). That's why you're
not seeing the expected outcome of consulting the .qmail file.
> In short, I want all mail for support <at> firstb2b.net or <anything> <at>
> to be forwarded to foo <at> bar.com.
> Anyone any ideas, please?
Link .qmail to .qmailsupport (or .qmail-support if you adjust users/assign as
suggested above). Let us know if that solves the problem.
* Custom email solutions * Systems Administration * Networking