On Thursday, May 24 at 09:54 PM, quoth Matthew Yette:
Thanks for getting back to me, Kyle.
No problem.
Your FROM address does not have to match anything. It can be
entirely made up if you like (this is why phishing is possible).
The problem I bring up about the "fake", backup domain (something
like, matt@example.backup) that lives on the filtering box, is that
some mail servers will reject the sender if the sending domain
doesn't actually exist (as example.backup doesn't), hence my desire
to have the backup domain be the same as the real domain.
My point is, when you send mail from the backup server, the return
address can be whatever you want, including the "real" domain (i.e.
example.com). This will not affect qmail's routing of the message at
all.
Is there a way to filter for a domain (example.com), and pass the
messages along via smtproutes to that company's mail server, while
also maintaining a copy of each message (via qmail-tap?) in a
vpopmail domain of the same name (example.com) that lives local on
that box, so that messages could still be sent from the web
interface?
...what? What makes you think you *can't* do that already?
If a domain of the same name lives on the filter box, it won't honor
the smtproutes entry, and it will just deliver the mail locally
instead. I wish it would copy it to the mailbox on the local box via
qmail-tap, AND honor smtproutes and forward it along.
Ummm, no.
smtproutes controls delivering messages that have a recipient in
example.com, not messages that have a return address in example.com.
So if you have, say, example.com in your smtproutes file, and you send
a message with a return address of foo@example.com, that message will
be delivered exactly the same way it would be if example.com was NOT
in smtproutes (or any of qmail's other config files (except
badmailfrom)). Unless you're doing some very weird filtering, the
SENDER doesn't affect how mail is delivered to RECIPIENTS. The sender
can be a domain in smtproutes, a domain in rcpthosts, a domain in
virtualdomains, or a domain that isn't anywhere in qmail's config: the
message will be delivered the same way and to the same place in all
cases.
~Kyle
--
Never think that war, no matter how necessary, no matter how
justified, is not a crime.
-- Ernest Hemingway
pgpmW5FyNa7aq.pgp
Description: PGP signature
|