#31 turn off masquerading amavis-perl sendma

closed
Rainer Link
None
9
2002-08-16
2002-03-21
Mike Thostenson
No

I have sendmail running with amavis-perl and all was
well until I wanted to host some other domains email
accounts. I have the domain foo.com as my primary
domain on the server. I am virtual hosting vfoo.com. I
want emails that go out using vfoo.com to have
user@vfoo.com and not foo.com. If I take out these
hacks to the sendmail.cf that I originally put in to
get amavis-perl working...the outgoing mail will have
the proper domain attached to the from:

b) change the queue directory, i.e. to
O QueueDirectory=/var/spool/mqamavis

c) change the status file, i.e. to
O StatusFile=/var/log/amavis.st
d) change rule set 0 to
R$* $: $>Parse0 $1 initial parsing
R<@> $#local $: <@> special case error msgs
R$* $: $>98 $1 handle local hacks
R$* $#amavis $:$1
#R$* $: $>Parse1 $1 final parsing

Be carefull of tabs, so here's the code again, instead
of [tab] press
the tab key :-)

R$*[tab][tab]$: $>Parse0 $1[tab][tab]initial parsing
R<@>[tab][tab]$#local $: <@>[tab][tab]special case
error msgs
R$*[tab][tab]$: $>98 $1[tab][tab]handle local hacks
R$*[tab][tab]$#amavis $:$1
#R$*[tab][tab]$: $>Parse1 $1[tab][tab]final parsing

Add the new mailer defintion:
Mamavis, P=/usr/sbin/amavis, F=mlsACDFMS5:/|@qhP, S=0,
R=0
T=DNS/RFC822/X-Unix,
A=amavis $f $u

Step 3: do a ./configure --enable-relay --enable-
sendmail,
make and make install (you may add some more flags to
configure)

Users will be sending emails from neomail. I have a
separate neomail setup for each domain. This works if
I take the amavis info out of the sendmail.cf and put
it back to the way it was.

Please help!!

Discussion

    • priority: 5 --> 9
     
  • Lars Hecking
    Lars Hecking
    2002-03-21

    • assigned_to: nobody --> reniar
     
  • Rainer Link
    Rainer Link
    2002-04-17

    Logged In: YES
    user_id=34819

    The sendmail relay hack is - as the name already implies -
    just a hack. I'd suggest to use sendmails milter interface

     
  • Rainer Link
    Rainer Link
    2002-08-16

    • status: open --> closed
     
  • Rainer Link
    Rainer Link
    2002-08-16

    Logged In: YES
    user_id=34819

    Closed. Got no response