Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Jul 2007 20:03:50 +0200
From:      "Michael Grant" <mg-fbsd3@grant.org>
To:        "FreeBSD Questions" <freebsd-questions@freebsd.org>
Subject:   relaying mail
Message-ID:  <62b856460707311103j5e648552kdeb1eba9ecff06e1@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
In one of my domains, I have the MX record for it set up to my server.
 But for one of the users within that domain, their mail needs to be
shuffled off to a different server at google.  But I can't just
forward it because it's like an MX host I'd need to forward it to.
And I can't alter the MX to point to google for the entire domain
because it's only one user within that domain, the other users will be
screwed in that case.

For example, mydomain.com, let's say the mx for that comes to my box.
For joe@mydomain.com, I need to send his mail to ASPMX.L.GOOGLE.COM as
if it were the MX for mydomain.com.

In the old days, one would simply forward email to
joe%mydomain.com@ASPMX.L.GOOGLE.COM.  That would cause mydomain.com's
sendmail to connect to ASPMX.L.GOOGLE.COM and shove down a message for
joe@mydomain.com.  But that seems long deprecated because it didn't
seem to work.

I am using sendmail and procmail.  Can anyone think of some way I can
cause something like this to happen for just one user, ideally in a
.procmailrc file?

Michael Grant



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?62b856460707311103j5e648552kdeb1eba9ecff06e1>