More on Masquerading

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

 



One of these *mc files cures my bounce problem.  The one with the
Masquerading stuff in it.

>From another thread I've learned that masquerading doesn't work as I
thought it did but for years now I've been masquerading what ever
machines I have at home as `newsguy.com'.  I thought I'd learned a way
of using the `genericstable' to do something similar and not need to
masquerade.

My assumption was that the `Smart_host' at the other end of my
sendmails outgoing activity required a resolvable host as source IP to
avoid bouncing.  I thought by setting some genericstable vars I could
make it appear to be a resolvable host name.

It is not an internet FQDN, just my own made up domain for my local
lan.  Therefore will never be resovable by dns lookups.

My attempt at using generics tables consisted of adding:
(see sendmail2.mc below for the full settings)

  FEATURE(`genericstable')dnl
  FEATURE(`generics_entire_domain')dnl

And to /etc/mail/genericstable:
   reader               reader@xxxxxxxxxxx

Building the hash and restarting sendmail.

With that in place I get these kind of errors:
(wrapped for mail).  They happen too quickly to be coming from the
smart_host so its my sendmail process rejecting it.

>From /var/log/messages

Aug 14 19:31:34 reader sendmail[12324]: i7F0VTsA012322:
to=<reader@xxxxxxxx>, ctladdr=<reader@xxxxxxxxxxxxxxxxx> (500/500),
delay=00:00:04, xdelay=00:00:04, mailer=relay, pri=120355,
relay=smtp.newsguy.com. [129.250.170.69], dsn=5.6.0, stat=Data format
error

Aug 14 19:33:05 reader sendmail[12353]: i7F0X40h012351:
to=<hpreader@xxxxxxxxxxxxx>, ctladdr=<reader@xxxxxxxxxxxxxxxxx>
(500/500), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=120369,
relay=smtp.newsguy.com. [129.250.170.69], dsn=5.6.0, stat=Data format
error

===
/etc/hosts

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1   localhost.localdomain localhost
# ===========================================================
192.168.0.4     reader.local.net0    reader   # fedcore3 t1
[...] stripped list of non-pertinent HOSTs

192.168.0.4 is the machine in question

=====
sendmail1.mc

divert(-1)dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`setup for Red Hat Linux')dnl
OSTYPE(`linux')dnl
define(`SMART_HOST',`smtp.newsguy.com')
define(`confDEF_USER_ID',``8:12'')dnl
define(`confTO_CONNECT', `1m')dnl
define(`confTRY_NULL_MX_LIST',true)dnl
define(`confDONT_PROBE_INTERFACES',true)dnl
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
define(`ALIAS_FILE', `/etc/aliases')dnl
define(`STATUS_FILE', `/var/log/mail/statistics')dnl
define(`UUCP_MAILER_MAX', `2000000')dnl
define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl
define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl
define(`confAUTH_OPTIONS', `A')dnl
define(`CERT_DIR',`/etc/mail/certs')
define(`confCACERT_PATH',`CERT_DIR')
define(`confCACERT',`CERT_DIR/cacert.pem')
define(`confSERVER_CERT',`CERT_DIR/cert.pem')
define(`confSERVER_KEY',`CERT_DIR/key.pem')
define(`confCLIENT_CERT',`CERT_DIR/cert.pem')
define(`confCLIENT_KEY',`CERT_DIR/key.pem')
define(`confTO_IDENT', `0')dnl
FEATURE(`no_default_msa',`dnl')dnl
FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
FEATURE(`mailertable')dnl
FEATURE(`virtusertable')dnl
FEATURE(`genericstable')dnl
FEATURE(`generics_entire_domain')dnl
GENERICS_DOMAIN(`local.net0')dnl
FEATURE(redirect)dnl
FEATURE(always_add_domain)dnl
FEATURE(use_cw_file)dnl
FEATURE(use_ct_file)dnl
FEATURE(local_procmail,`',`procmail -t -Y -a $h -d $u')dnl
FEATURE(`access_db',`hash -T<TMPF> -o /etc/mail/access.db')dnl
FEATURE(`blacklist_recipients')dnl
FEATURE(`accept_unresolvable_domains')dnl
LOCAL_DOMAIN(`localhost.localdomain')dnl
MAILER(smtp)dnl
MAILER(procmail)dnl

===
sendmail2.mc

divert(-1)dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`setup for Red Hat Linux')dnl
OSTYPE(`linux')dnl
define(`SMART_HOST',`smtp.newsguy.com')
define(`confDEF_USER_ID',``8:12'')dnl
define(`confTO_CONNECT', `1m')dnl
define(`confTRY_NULL_MX_LIST',true)dnl
define(`confDONT_PROBE_INTERFACES',true)dnl
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
define(`ALIAS_FILE', `/etc/aliases')dnl
define(`STATUS_FILE', `/var/log/mail/statistics')dnl
define(`UUCP_MAILER_MAX', `2000000')dnl
define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl
define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl
define(`confAUTH_OPTIONS', `A')dnl
define(`CERT_DIR',`/etc/mail/certs')
define(`confCACERT_PATH',`CERT_DIR')
define(`confCACERT',`CERT_DIR/cacert.pem')
define(`confSERVER_CERT',`CERT_DIR/cert.pem')
define(`confSERVER_KEY',`CERT_DIR/key.pem')
define(`confCLIENT_CERT',`CERT_DIR/cert.pem')
define(`confCLIENT_KEY',`CERT_DIR/key.pem')
define(`confTO_IDENT', `0')dnl
FEATURE(`no_default_msa',`dnl')dnl
FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
FEATURE(`mailertable')dnl
FEATURE(`virtusertable')dnl
FEATURE(`genericstable')dnl
GENERICS_DOMAIN(`local.net0')dnl
FEATURE(redirect)dnl
FEATURE(always_add_domain)dnl
FEATURE(use_cw_file)dnl
FEATURE(use_ct_file)dnl
FEATURE(local_procmail,`',`procmail -t -Y -a $h -d $u')dnl
FEATURE(`access_db',`hash -T<TMPF> -o /etc/mail/access.db')dnl
FEATURE(`blacklist_recipients')dnl
FEATURE(`accept_unresolvable_domains')dnl
LOCAL_DOMAIN(`localhost.localdomain')dnl
MASQUERADE_AS(`newsguy.com')dnl
FEATURE(masquerade_envelope)dnl
MAILER(smtp)dnl
MAILER(procmail)dnl



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux