On 18 Jan, Grant Byers wrote:
>  On Jan 18, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote :
> > Mm, but it still looks like mail from me under gentoo is looking like
> > it came from <local-loginname>@optushome.com.au, ignoring genericstable:
> > 
> > FEATURE(`genericstable',`hash -T<TMPF> /etc/mail/genericstable.db')
>  
>  Are you masquerading correctly?
>  
>  MASQUERADE_AS(`<yourip>')dnl         // masquerade as your IP
>  FEATURE(`use_ct_file')                               // use your trusted-users file
>  FEATURE(`masquerade_envelope')               // set envelope headers to your 
> masquerade
>  FEATURE(`local_no_masquerade')               // don't masquerade to local users

I've turned on "FEATURE(accept_unresolvable_domains)" and followed Tony
Green's other advice, and then got errors like this from mailq:

                 (hash map "Alias0": missing map file /etc/aliases.db: No such)
                                         <[EMAIL PROTECTED]>

and realised another stuff-up (I told it to use /etc/aliases instead of
/etc/mail/aliases), so I fixed that and for the first time received some
external mail.  Yippee!

How significant is the local_no_masquerade?  Does it mean that if you
mail locally, and they reply locally, they won't think they need to go
externally via your ISP?  That'd be good.

And, what format is the trusted users file?  Plain text or must it be
fed through makemap?  Is it supposed to have local login names, local
login names @ FDQN, or masqueraded names?  And

README.cf:

    use_ct_file     Read the file /etc/mail/trusted-users file to get
                    the names of users that will be ``trusted'', that
                    is, able to set their envelope from address using -f
                    without generating a warning message.  The actual
                    filename can be overridden by redefining
                    confCT_FILE.

What I have in my .mc file is:

#
# Deliver all local mail immediately, and queue
# all other mail.
#
# Rewrite outbound and inbound headers with the
# user database to translate local to outside
# email addresses.
#
divert(-1)
VERSIONID(`$Id: kendall.mc,v 8.1 1999/09/24 22:48:05 luke Exp $')
include(`/usr/share/sendmail-cf/m4/cf.m4')
define(`confDEF_USER_ID',``8:12'')
define(`confUSERDB_SPEC',``/etc/mail/kendall.userdb.db'')
define(`confCON_EXPENSIVE',`True')
define(`confDELIVERY_MODE',`b')
define(`STATUS_FILE', `/var/log/sendmail.st')dnl
define(`SMTP_MAILER_FLAGS',`e')
define(`confCOPY_ERRORS_TO',`luke')dnl
define(`ALIAS_FILE', `/etc/mail/aliases')
define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')
define(`confAUTH_OPTIONS', `A')
OSTYPE(`linux')
DOMAIN(generic)
undefine(`UUCP_RELAY')
undefine(`BITNET_RELAY')
define(`SMART_HOST',`mail.optushome.com.au')
EXPOSED_USER(root news mail mailer-daemon)
FEATURE(redirect)
FEATURE(local_procmail,`',`procmail -t -Y -a $h -d $u')dnl
FEATURE(use_cw_file)
FEATURE(nocanonify)dnl
MASQUERADE_AS(optushome.com.au)
MASQUERADE_DOMAIN(`localdomain')
FEATURE(masquerade_envelope)
FEATURE(masquerade_entire_domain)
# The generics table handles the re-writing of outgoing addresses:
FEATURE(`genericstable',`hash -T<TMPF> /etc/mail/genericstable.db')
FEATURE(`access_db',`hash -T<TMPF> /etc/mail/access.db')dnl
FEATURE(`blacklist_recipients')dnl
FEATURE(`accept_unresolvable_domains')dnl
MAILER(local)
MAILER(smtp)
MAILER(procmail)


luke

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to