Re: More on Masquerading

From: Alexander Dalloz (alexander.dalloz_at_uni-bielefeld.de)
Date: 08/16/04

  • Next message: Markus Huber: "Re: 1680x1050 resolution not working (Fedora Core 2, Dell Inspiron 8600, WSXGA+)"
    Date: Mon, 16 Aug 2004 21:03:23 +0200
    To: For users of Fedora Core releases <fedora-list@redhat.com>
    
    
    
    

    Am So, den 15.08.2004 schrieb Ow Mun Heng um 12:19:

    > What exactly does genericstable do? (Sorry, writing this mail off-line)

    Please read my explanations in the posting I just wrote for Harry.

    > My Problem.

    > @work = mails must be sent out using the corp exhange server (smart host
    > feature _must_ be implemented via sendmail.mc)
    >
    > @home = mails are sent out w/o using smart host. Meaning, I have to
    > actively re-compile sendmail.mc each time between office and home to
    > send out emails. Cause @home, mails gets relayed directly to the
    > receipient's MX.

    You use the same email address @wdc.com from work too at home? Can you
    use the business mail server as smart host as well from at home (SMTP
    AUTH)?

    > > It is not an internet FQDN, just my own made up domain for my local
    > > lan. Therefore will never be resovable by dns lookups.
    > Just as I thought. And what/how does this affect mail sending?

    It will lead to rejects by foreign MTAs. For SPAM fighting most MTAs
    meanwhile don't accept mail with 'faked' sender addresses.
     
    > > 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@newsguy.com
    > What does this achieve? I don't see a genericstable in my
    > /etc/mail/ directory

    You have to create a genericstable your own, if you like to use that
    one. For each domain in class {G} - the generics-domains listing is
    missing here - the sender address on the left side in the genericstable
    map file is rewritten to what is to be found on the right hand side.

    > > Aug 14 19:31:34 reader sendmail[12324]: i7F0VTsA012322:
    > > to=<reader@jtan.com>, ctladdr=<reader@reader.local.net0> (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
    >
    > What's data format error? And I see that your relay is =
    > smtp.newsguy.com, which resolves to your Inet Public IP.

    smtp.newsguy.com is Harry's ISP's smart host MTA.

    > For my case, it gets relayed to the localhost (127.0.0.1)'s smtp. which
    > then hands it over to sendmail to contact the MX.

    Yes, this is part of communication between Harry's Sendmail and the
    smart host.

    > What I want to know is, is there a way to say that I want mails to be
    > sent out 1st using the Direct approach, if it fails then fall back to
    > the smart host.
    >
    > Something like /etc/host.conf
    >
    > user$ cat host.conf
    > order hosts,bind
    >
    > pseudo code :
    > if [check if it's a local address ]; then
    > pass to local sendmail
    > elif [check if we can send direct to MX ]
    > pass to sendmail for direct MX
    > else # when all else fails
    > pass to smart host for relay

    If I remember correctly there is no such fallback order.
    Do you use different mail addresses at work and at home? Then you could
    use smarttable. Else I would suggest not using the smart_host definition
    in the sendmail.mc file, but to use the mailertable instead. That makes
    switching a bit easier: you don't need to restart the Sendmail daemon
    because you don't change the sendmail.mc/.cf file but the mailtertable
    hashed map file: edit the mailertable file and run "make -C /etc/mail"
    and your change takes place immediately. See

    http://www.sendmail.org/m4/mailertables.html

    on how to set the entry for your smart host. To deactivate simply put a
    # in front of it to directly speak to the recipient MTAs.

    > Ow Mun Heng

    Alexander

    -- 
    Alexander Dalloz | Enger, Germany | GPG key 1024D/ED695653 1999-07-13
    Fedora GNU/Linux Core 2 (Tettnang) kernel 2.6.7-1.494.2.2smp 
    Serendipity 20:18:18 up 12 days, 13:45, load average: 0.16, 0.18, 0.12 
    
    

    
    

    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    


  • Next message: Markus Huber: "Re: 1680x1050 resolution not working (Fedora Core 2, Dell Inspiron 8600, WSXGA+)"

    Relevant Pages

    • Re: sendmail relaying to isp with authentication with no dns lookup
      ... Sendmail to work with outgoing.verizon.net. ... but this is the one that comes with Red Hat Linux ... As you know, in an attempt to reduce spam, Verizon began requiring all ... A smart host is a mail server that takes all one's ...
      (comp.mail.sendmail)
    • Re: (newbie) sendmail Masquerading Help?
      ... not the MTA of verizon.net. ... Please review the whole process ... Even if you use a smart host with Sendmail, ...
      (Fedora)
    • Re: Sendmail Smart Relay Configuring
      ... Given you redefine the relay mailer to use port 587 outgoing then set ... Be aware that you need to put the smart host address into squared ... Now watch out which MECHs the server offers. ... Sendmail, Tested, and got the following output: ...
      (Fedora)
    • Sendmail/qmail nameserver problem
      ... an odd problem when I upgraded to broadband. ... My sendmail is RPM version sendmail-8.11.6-27.73. ... The problem is that when I try to send an email, I get error messages ... I've also tried to add a smart host but it didn't help. ...
      (comp.os.linux.networking)
    • Re: why would DS be ignored?
      ... > I am running 8.13.1 on a laptop running Fedora Core 3. ... with the local sendmail routing the mail via ... > whatever smart host was appropriate. ... * Sendmail daemon "rememebers" sendmail.cf as it was when the daemon was ...
      (comp.mail.sendmail)