[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] mails of 2 domains -> to 1 domain



>...sorry, but your solution doesn't work.

Can you explain a bit more than "doesn't work"?  What *does* it do?
Errors?  Messages?

>Now I will create a new virtual site for the domain1.net with forwardings of each mail alias to alias@xxxxxxxxxxxxxx

That's basically what the virtusertable solution does.  It just uses the
virtusertable instead of the aliases file.

>Does anybody know whether a module for sendmail exists which can relay mails (alias@xxxxxxxxxxx) by analyzing their aliases and send them to alias@xxxxxxxxxxxxxxx

You can write a Rule to do this.  I've written sendmail 5 and sendmail 6
rules for a long time, but not a sendmail 8 rule, so I'm not going to
try and give you the syntax in sendmail 8, but back in those others,
you'd do:

R$* < @ domain1.com. > $*   $#smtp $@ maindomain.com.  $:mainaccount < @ maindomain.com. >             @domain1.com to stmp mainaccount@xxxxxxxxxxxxxx
R$* < @ $* .domain1.com. > $*       $#smtp $@ maindomain.com.  $:mainaccount < @ maindomain.com. >             @domain1.com to stmp mainaccount@xxxxxxxxxxxxxx

Sendmail 8 should be similar.

Don't know why the other one "didn't work" though, I use it all the time.
I've got about 2 dozen sites that do just that.

-Arf, JT
------------------------------------------------------------------------------
  "If I knew what was going on, I'd *really* be indignant!"
                                   - Crow, "Mystery Science Theatre 3000"

 Join the UniServe Seti@Home Team: http://www.unisrv.net/computerguys/seti

Unix, Networking and ISP Consulting                             lfm@xxxxxxxxxx
http://www.unisrv.net            MSN IM: S_A_Alis@xxxxxxxxxxx      ICQ 9099687
FurryMUCK (muck.furry.org 8888): S'A'Alis    www.unisrv.net/lfm   MSTie# 21756