This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

"dumb" sendmail --> SMTP Proxy

I have the following setup: Astaro SMTP Proxy named "dingus" (192.168.1.1) is configured with the /etc/wfe/conf/smtpdata below. dingus accepts and forwards mail just fine for an Outlook client  but when a Linux box running sendmail (sending only!) tries to do this I get "unrouteable mail domain." I've tried a number of changes in the sendmail config on the Linux but we always end up with this zeek@dingus problem. Any help would be greatly appreciated. 

Thank you, -zeek

Note: I couldn't post the actual command because of some html complaint. It should read: "sendmail dash v less than dev null" 

mogwai:/tmp# sendmail -v zeek "less than /dev/null"
zeek... Connecting to dingus.sparklehouse.com. via relay...
220 ESMTP ready.
-- EHLO mogwai.sparklehouse.com
250-dingus.sparklehouse.com Hello mogwai.sparklehouse.com [192.168.1.10]
250-SIZE 1047527424
250-PIPELINING
250 HELP
-- MAIL From: root@mogwai.sparklehouse.com
250 root@mogwai.sparklehouse.com is syntactically correct
-- RCPT To:zeek@dingus
250 zeek@dingus is syntactically correct
-- DATA
354 Enter message, ending with "." on a line by itself
-- .
250 OK id=17eibn-0001py-00
zeek... Sent (OK id=17eibn-0001py-00)
Closing connection to dingus.sparklehouse.com.
-- QUIT
221 dingus.sparklehouse.com closing connection

_________

dingus:/etc/wfe/conf # cat smtpdata

[extensions]

[rbldomains]

[regexps]

[relays]
eth0_Network__

[global]
antivirus = 1
auth = 0
encryption = 0
extension = 0
hostname = dingus.sparklehouse.com
maxsize = unlim
postmaster = admin@sparklehouse.com
rbl = 0
regexp = 0
senderverify = 0
status = 1
 
 [size="1"][ 13 August 2002, 16:51: Message edited by: zeek ][/size]


This thread was automatically locked due to age.
Parents
  • I'm posting again to communicate the problem in different terms. I'm not sure what the problem area is: DNS, Sendmail config, DNS/SMTP proxy config, bad weather?

    Here's the scenario

    darla
    o win xp
    o 192.168.1.5n-60 (dhcp)
    o outlook client

    mogwai
    o redhat 7.3
    o 192.168.1.10 (static)
    o will generate emails to "root," "admin," etc.  -- that must be forwarded to @sparklehouse.com
    o NOT an SMTP server, but will be sending mail
    -- via sendmail
    o non authoriatative dns server for
    -- sparklehouse.com --it handles the 192.168.1.n -- zone but the rest of sparklehouse.com is
    -- actually within a 128.123.123.n zone (public -- ip) --therefore hostnames like mogwai, darla, -- and dingus are not resolvable outside of
    -- 192.168.1.n

    dingus
    o astaro 3.0.2
    o 192.168.1.1
    o DNS Proxy on forwarding to 2 outside public DNS
    o SMTP Proxy on with config below

    Problem:

    o darla can send email via dingus fine --no problem here
    o mogwai, as you can see by the log below is getting rewritten and dumped

    I have a few ideas but I'm not sure why this is happening. Any comments would be appreciated.

    Cheers,
    -zeek

    ----------------------------

    Aug 13 19:55:39 dingus exim[1823]: 2002-08-13 19:55:39 17elVj-0000TP-00 {= zeek@sparklehouse.com H=(DARLA) [192.168.1.50] P=smtp S=649 id=FMEDICOOPIIAHELGINPCIEBOCGAA.zeek@sparklehouse.com
    Aug 13 19:55:44 dingus exiscanv2[1368]: 17elVj-0000TP-00 F:{zeek@sparklehouse.com} T:zeek@sparklehouse.com R:clean, marked for dequeue
    Aug 13 19:55:46 dingus exim[1861]: 2002-08-13 19:55:46 17elVj-0000TP-00 =}
    zeek@sparklehouse.com R=smtp_router T=remote_smtp H=66.92.233.12 [66.92.233.12]
    Aug 13 19:55:46 dingus exim[1861]: 2002-08-13 19:55:46 17elVj-0000TP-00 Completed
    -------------------

    Aug 13 19:59:57 dingus exim[3045]: 2002-08-13 19:59:57 17elZs-0000n7-00 {= root@mogwai.sparklehouse.com H={mogwai.sparklehouse.com} [192.168.1.10] P=esmtp S=486 id=200208140003.g7E03ht02503@mogwai.sparklehouse.com
    Aug 13 20:00:00 dingus exiscanv2[1368]: 17elZs-0000n7-00 F:{root@mogwai.sparklehouse.com} T:zeek@dingus R:clean, marked for dequeue
    Aug 13 20:00:02 dingus exim[3092]: 2002-08-13 20:00:02 17elZs-0000n7-00 ** zeek@dingus.sparklehouse.com {zeek@dingus}: remote host address is the local host
    Aug 13 20:00:02 dingus exim[3093]: 2002-08-13 20:00:02 17elZy-0000nt-00 {= {} R=17elZs-0000n7-00 U=exim P=local S=1464
    Aug 13 20:00:02 dingus exim[3092]: 2002-08-13 20:00:02 17elZs-0000n7-00 Error message sent to root@mogwai.sparklehouse.com
    Aug 13 20:00:02 dingus exim[3092]: 2002-08-13 20:00:02 17elZs-0000n7-00 Completed
    Aug 13 20:00:06 dingus exiscanv2[1368]: 17elZy-0000nt-00 F:== T:root@mogwai.sparklehouse.com R:clean, marked for dequeue
    Aug 13 20:00:08 dingus exim[3112]: 2002-08-13 20:00:08 17elZy-0000nt-00 == root@mogwai.sparklehouse.com T=remote_smtp defer (-44): retry time not reached for any host
  • You need to get sendmail to "qualify" sender and recipient addresses with a proper domain name when they do not have one. The firewall will expand name@dingus to name@dingus.sparklehouse.com by default ... which is itself. And it does not do local deliveries    

    /tom
Reply
  • You need to get sendmail to "qualify" sender and recipient addresses with a proper domain name when they do not have one. The firewall will expand name@dingus to name@dingus.sparklehouse.com by default ... which is itself. And it does not do local deliveries    

    /tom
Children
  • If you want to have sendmail proxy the mail out to the ASL box you need to edit /etc/sendmail.cf.  

    look for the following line

    # "Smart" relay host (may be null)
    DS:

    edit it to look like this

    # "Smart" relay host (may be null)
    DSrelay:[10.2.0.19]

    MAKE SURE YOU INCLUDE []'s!!!! or it wont work.

    Where 10.2.0.19 = your ASL internal addy.

    ;-)
  • I guess I should clerify...

    This needs to be done on INTERNAL server, NOT ASL box.

    This will only work if you are sending external mail to a real domain.  If ASL can't do MX lookup it will stop at ASL, but my guess is it's stopping before that since it's working for outlook...

    Again this is all asuming that your mail is stopping on the internal box, not ASL.  Hope this helps...

  • I've been living with this problem for quite some time. Over the past months I've made a number of attempts to fix it but nothing worked. Just recently I checked out these old posts of mine and found the answer...

    In editing sendmail.cf there are some places where the commented out notation is incorrect, DS is one of them.

    DSmysmarthost.domain.com 

    WILL NOT WORK! As mentioned above it must be as follows:

    DSrelay:[192.168.1.1]

    Even using m4 doesn't produce the proper syntax. Hell's Bells sendmail.

    Thanks to those who offered guidance with this. 


    Cheers,
    -zeek