ipfw configuration to intercept SMTP traffic

From: Bill Eccles (Bill.lists_at_Eccles.net)
Date: 10/31/04

  • Next message: Scott W: "Re: sun box"
    Date: Sun, 31 Oct 2004 15:39:04 -0500
    To: <freebsd-questions@freebsd.org>
    
    

    Gentleones,

    I have a commercial website/mail product running on a box. Unfortunately,
    the product is not so smart and when it needs to bounce something, it
    ignores the SMTP "Always Relay Via" setting and attempts to connect directly
    to the mail exchanger for the domain it's bouncing to.

    So what I figure I can do is redirect port 25 of "me" to any to port 25 of
    the upstream server at aa.bb.cc.dd. That makes sense, right? So I'd probably
    use:

    ipfw add 8000 divert 25 all from me to aa.bb.cc.dd via en0

    (8000 is OK because the only other rule in there right now is the default at
    65535.)

    Well, that's what I tried and it looks like the SMTP server is still trying
    (and failing) to contact the servers directly. A "telnet somehost.net 25"
    executed on this box fails, too, where it should get me the upstream relay
    server.

    So have I goofed the rule? (Yes.)

    OK, then how have I goofed it?

    Thanks,
    Bill

    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: Scott W: "Re: sun box"

    Relevant Pages

    • Re: Failed MX lookup; try again later
      ... Simple Mail Transport Protocol /Post Office Protocol server. ... the "A" record for the mail server host. ... Start the DNS snap-in. ... then click New Mail Exchanger. ...
      (microsoft.public.exchange.admin)
    • I think I found the answer
      ... Nslookup can be used to transfer an entire zone by using the ls command. ... Zone transfers can be blocked at the DNS server so that only authorized ... The DNS server refused to transfer the zone my-domain.ad to your computer. ...
      (microsoft.public.windows.server.dns)
    • Re: List all records for domain
      ... To export the resource record list from the test.reskit.com zone on the reskit.com DNS server, ... novell.com MX preference = 2, ...
      (microsoft.public.windows.server.dns)
    • Re: cannot recieve external messages
      ... you will need a valid public MX (mail exchanger) DNS ... Check your SMTP Virtual Server to make it default value. ... I can send emails to only certain ... > mail message with the following message ...
      (microsoft.public.exchange.misc)
    • [opensuse] email server problem with DNS server
      ... i have configured one email server and dns server into my server. ... gmail.com mail exchanger = 5 gmail-smtp-in.l.google.com. ... gmail.com nameserver = ns4.google.com. ... gmail-smtp-in.l.google.com internet address = 66.249.91.27 ...
      (SuSE)