Re: Sendmail query...


Subject: Re: Sendmail query...
From: David J. Weller-Fahy (lists@weller-fahy.com)
Date: Mon Dec 09 2002 - 18:10:15 AKST


* Arthur Corliss <arthur@corlissfamily.org> [2002-12-09 10:30]:
> I'm not sure we have all the information we need to fix this, but
> let's start with this: in my configuration local delivery only takes
> place if a) the recipient address is unqualified, b) the recipient
> address is qualified, but qualified to the *host* address, not just
> the domain, or c) the local sendmail daemon has the recipient domain
> listed as an domain it accepts mail for (typically via sendmail.cw).

Sorry, I should have provided info, instead of ranting. ;]
Here's my weller-test.mc file (the one I'm currently trying):

#v+
divert(-1)dnl
include(`../m4/cf.m4')dnl
OSTYPE(`openbsd')dnl
undefine(`UUCP_RELAY')dnl
undefine(`BITNET_RELAY')dnl
undefine(`DECNET_RELAY')dnl
undefine(`LOCAL_RELAY')dnl
define(`PROCMAIL_MAILER_PATH',`/usr/local/bin/procmail')dnl
FEATURE(`use_ct_file',`/etc/mail/trusted-users')dnl
FEATURE(`use_cw_file',`/etc/mail/local-host-names')dnl
FEATURE(`smrsh',`/usr/libexec/smrsh')dnl
FEATURE(`local_procmail')dnl
FEATURE(`masquerade_envelope')dnl
FEATURE(`accept_unqualified_senders')dnl
MASQUERADE_AS(`weller-fahy.com')dnl
define(`SMART_HOST',`smtp:[smtp.gci.net]')dnl
MAILER(`procmail')dnl
MAILER(smtp)dnl
#v-

> If so, did you list your domain in sendmail.cw?

/etc/mail/local_host_names contains:

#v+
weller-fahy.com
weller-kin.com
sleepy.nu
#v-

Aliases are set as follows:

#v+
dave largely@innocent.com
#v-

> Are you overriding local mail delivery with any of the smart host
> relaying features?

Yep, at this point I'm just trying to get any mail to go out of the
smart host. I've got a yahoo address that I'm using to test this, and
so far no luck. As you can see, I've unset the RELAYs, and defined a
smart host. I'm thinking that it should just go to that smart host to
deliver any mail (later, I'll deal with local addresses).

It looks like when sendmail attempts to deliver, it tries to go to the
mail.weller-fahy.com on the 'net: 130.94.96.194.

Here are the relevent log entries (long lines, they may wrap):

#v+
Dec 9 17:10:43 imap sendmail[12105]: gBA2AhDd012105:
Authentication-Warning: imap.weller-fahy.com: www set sender ta largely@innocent.com using -f
Dec 9 17:10:43 imap sendmail[12105]: gBA2AhDd012105: from=largely@innocent.com, size=618, class=0, nrcpts=1, msgid=<1039486243.3df54d239455d@imap.weller-fahy.com>, relay=www@localhost
Dec 9 17:10:44 imap sendmail[12105]: gBA2AhDd012105: to=hotwetlemur@yahoo.com, ctladdr=largely@innocent.com (67/67), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30510, relay=localhost.weller-fahy.com. [130.94.96.190], dsn=5.7.1, stat=User unknown
Dec 9 17:10:44 imap sendmail[12105]: gBA2AhDd012105: gBA2AhDe012105: DSN: User unknown
Dec 9 17:10:45 imap sendmail[12105]: gBA2AhDe012105: to=largely@innocent.com, delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=31642, relay=localhost.weller-fahy.com. [130.94.96.190], dsn=5.7.1, stat=User unknown
Dec 9 17:10:45 imap sendmail[12105]: gBA2AhDe012105: gBA2AhDf012105: return to sender: User unknown Dec 9 17:10:45 imap sendmail[12105]: gBA2AhDf012105: to=postmaster, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=32666, relay=localhost.weller-fahy.com. [130.94.96.190], dsn=5.7.1, stat=User unknown
Dec 9 17:10:45 imap sendmail[12105]: gBA2AhDe012105: Losing ./qfgBA2AhDe012105: savemail panic
Dec 9 17:10:45 imap sendmail[12105]: gBA2AhDe012105: SYSERR(www): savemail: cannot save rejected email anywhere
Dec 9 17:10:46 imap imapd-ssl: LOGOUT, user=dave, ip=[::ffff:127.0.0.1], headers=0, body=0
#v-

Fetchmail grabs all my mail, so I don't need sendmail to accept
connections from the outside at all. Currently, simply getting sendmail
to send JUST out the smart host would be acceptable, but here's what I
would like:

- Anything addressed to weller-fahy.com, weller-kin.com, sleepy.nu gets
  delivered to localuser dave.
  - Exception to the above: I'd like to have a list of email addresses
    that aren't 'my' email, and those would be either forwarded/bounced
    to an off-site address delivered or to a corresponding local user.
- Anything not qualified, or qualified by the host address, gets
  delivered to the corresponding local user.
- Anything NOT addressed to the three domains gets sent to the smart
  host (gci's smtp server).

That's what I'm having trouble with. Any other info that you might
need?

Regards,

  dave

---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.



This archive was generated by hypermail 2a23 : Mon Dec 09 2002 - 18:10:19 AKST