[Mimedefang] Sendmail problem..

Richardson M. M.Richardson at tk.parlement.nl
Tue Jan 14 09:44:00 EST 2003


This is the last post, virtusertable is only processed for domains listed in
${w} and that's where I made a mistake, simple but stupid.

Thanks for the replies people ! 

-----Original Message-----
From: Richardson M. 
Sent: Tuesday, January 14, 2003 2:27 PM
To: 'mimedefang at lists.roaringpenguin.com'
Subject: RE: [Mimedefang] Sendmail problem..


Ok i think i found the problem; (see my other posts "Sendmail problem")

Sendmail doesn't take the virtusertable file in consideration so i can make
all the rules i want... It just won't work !!

Does anyone have a clue as of why this might happen?

Sendmail-8.12.6
config.mc: FEATURE(`virtusertable', `hash -o /etc/mail/virtusertable')dnl
sendmail.cf: Kvirtuser hash -o /etc/mail/virtusertable

Sendmail doesn't even complain when there is no
/etc/mail/virtusertable(.db).

/etc/mail/aliases, /etc/mail/access and /etc/mail/mailertable do work
properly.
For the access_db i had to use the following line in config.mc to stop m4
from generating errors in the sendmail.cf file:
FEATURE(`access_db', `hash -T<TMPF> /etc/mail/access')dnl
I didn't look in to this as i just upgraded my sendmail version with an
working config.mc, it only complained about that, i changed it and it
worked.. 

Well thanks AGAIN,

I will recompile sendmail in the meantime, maybe i made a mistake (any idea
what??).

-----Original Message-----
From: Matt Bruce [mailto:mbruce at insl.co.uk]
Sent: Monday, January 13, 2003 3:43 PM
To: mimedefang at lists.roaringpenguin.com
Subject: RE: [Mimedefang] Sendmail problem..


Hi Mark,

> I tried generating a nouser error via the virtusertable, this 
> doesn't work; does nothing at all. 

This is the solution I'd recommend (in lieu of doing something about the
policy of not accepting @domain.com mail). The syntax would be (as per
readme.cf):

@domain.com   error:5.7.0:550 We do not handle mail for that domain.

> Same goes for address rewriting using the virtusertable (@domain.com 
> %1 at sub.domain.com).

I'm using this technique right now for testing and it's works a treat.
Though my company's primary domain is MX'd to one real IP and the
testing subdomain is MX'd to another real IP.

> OR my virtusertable is not processed by sendmail because of 
> an .mc error, but this is unlikely as the entry in sendmail.cf 
> is ok, or it is not processed because of the strange setup. 

It's possible your sendmail.mc file is incorrect. The applicable entry
in mine is:

FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl

Don't forget - unless your /etc/init.d/sendmail script is set to do it
automagically - that you'll need to run the following script whenever
you modify the source file:

makemap hash /etc/mail/virtusertable.db < /etc/mail/virtusertable

Sorry if I've merely restated what you've done or the obvious, but I'm
at a loss to understand why it isn't working for you otherwise.

HTH,
Matt


_______________________________________________
MIMEDefang mailing list
MIMEDefang at lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

************************************************************************
Tweede Kamer der Staten-Generaal
www.tweede-kamer.nl
 
Aan dit bericht kunnen geen rechten worden ontleend.
Dit elektronisch bericht is uitsluitend bestemd voor de geadresseerde.
Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te
vernietigen en de afzender te informeren.
Wij adviseren u om bij twijfel over de juistheid of de volledigheid van
dit bericht contact op te nemen met afzender.

No rights can be derived from this message.
This electronic message is intended only for the addressee.
Should you have received this message in error, you are kindly
requested to delete it and inform the sender.
Should you question the accuracy or the completeness of this
message, you are advised to contact the sender.
************************************************************************

************************************************************************
Tweede Kamer der Staten-Generaal
www.tweede-kamer.nl
 
Aan dit bericht kunnen geen rechten worden ontleend.
Dit elektronisch bericht is uitsluitend bestemd voor de geadresseerde.
Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te
vernietigen en de afzender te informeren.
Wij adviseren u om bij twijfel over de juistheid of de volledigheid van
dit bericht contact op te nemen met afzender.

No rights can be derived from this message.
This electronic message is intended only for the addressee.
Should you have received this message in error, you are kindly
requested to delete it and inform the sender.
Should you question the accuracy or the completeness of this
message, you are advised to contact the sender.
************************************************************************


More information about the MIMEDefang mailing list