(Hacked out of a message from my Sendmail guru) relay-domains mydomain.com
local-host-names mydomain.com virtusertable @mydomain.com [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] Sendmail Hack Modify the cd /usr/local/sendmail/smmta-8.10.0/cf/mailer/smtp.m4 file to add the sendmail rule # Added to fix INTERNALSERVER virtuser problem # [EMAIL PROTECTED] ==> [EMAIL PROTECTED] R$* < @ internalserver. $* > $* $: $1 < @ $2 > $3 # End INTERNALSERVER hack immediately after the # # envelope recipient rewriting -- # also header recipient if not masquerading recipients # SEnvToSMTP=21 header lines, and before the R$+ $: $>PseudoToReal $1 sender/recipient common R$+ $: $>MasqSMTP $1 qualify unqual'ed names R$* < @ *LOCAL* > $* $: $1 < @ $j . > $2 rules in that section. Load, Save, and Deploy config. The hack strips the LNOT28 out of the address when it forwards the virtuser stuff to a back-end host. Without it you get addresses like [EMAIL PROTECTED] upon delivery. Hope this helps On Fri, 24 Jan 2003 08:46:56 +0100 Roger Oberholtzer <[EMAIL PROTECTED]> wrote: > > I have just moved a mail server to use sendmail (Caldera 3.1.1). > > The machine 'should' forward all mail for a specific domain to an > internal machine. OK. So I set up the mailertable to make this happen. > That works. > > BTW, none of the users should have have an account on this sendmail box. > > Now, I have a few users in this domain who would prefer that their mail > does not go to this internal machine, but is instead forwarded > elsewhere. > > This is where it breaks down for me. I tried the following: > > 1. Use virtusertable for each specific user. It seems that if you use > mailertable for a domain, sendmail does not look at virtusertable for > any exceptions to the domain's rule. At least it acts that way. All mail > for that domain goes where mailertable says, despite an entry in > virtusertable. > > 2. Only use virtusertable, adding a 'catch all' rule like: > > @external %1@internal > > to the end to pass all users without a preference to the internal > machine. > > This also seems to not work. > > 3. Make a user account and then use /etc/aliases to move each one > independently > > 4. Make a $HOME/.forward file for each user who wants to deviate from > the mailertable domain definition. > > For points 3 and 4, sendmail will consider the setup. However, it will > not forward any mail to the machine in mailertable. For those users, it > considers them local and will attempt no more. If that same user > forwards mail to somewhere other than the place listed in mailertable, > the mail happily gets forwarded. > > Yikes. Need it be so complicated? All I wan is to be able to forward > virtual users. The domain being forwarded is not the same as the name of > any machines involved. > > My local-host-names file lists localhost and the domain being forwarded. > > As I do not want the users to have an account on the external machine, > how'should' I have gone about this? > > -- > +����������������������������+�������������������������������+ > � Roger Oberholtzer � E-mail: [EMAIL PROTECTED] � > � OPQ Systems AB � WWW: http://www.opq.se/ � > � Erik Dahlbergsgatan 41-43 � Phone: Int + 46 8 314223 � > � 115 34 Stockholm � Mobile: Int + 46 733 621657 � > � Sweden � Fax: Int + 46 8 302602 � > +����������������������������+�������������������������������+ > _______________________________________________ > Linux-users mailing list > [EMAIL PROTECTED] > Unsubscribe/Suspend/Etc -> > http://www.linux-sxs.org/mailman/listinfo/linux-users _______________________________________________ Linux-users mailing list [EMAIL PROTECTED] Unsubscribe/Suspend/Etc -> http://www.linux-sxs.org/mailman/listinfo/linux-users
