Re: [exim] Exim rewrites Return-Path when it shouldn't

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: daniel
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: Re: [exim] Exim rewrites Return-Path when it shouldn't
On Monday 27 March 2006 15:48, Graeme Fowler wrote:
> http://www.exim.org/exim-html-4.60/doc/html/spec.html/ch43.html#SECTsubmodn
>on
>
> You were, in fact, right all along. Have a read of that, and pay
> attention to the bits about tweaking the various retain settings and how
> to set a domain on the submitted email message.
>
> Failing that, simply drop the "control = submission" part in your ACL
> which accepts your authenticated messages. As you're authenticating with
> a fully-qualified email address, you don't need to do any domain munging
> - that's used to add a domain onto emails which appear to come from
> system users, ie. locally submitted. Yours don't.


I read over that link and it sorta put me on the right track. There appears
to have been something wrong with the order in which I had setup
acl_check_rcpt. The version that didn't work looked like this:

accept hosts = :

  deny    message       = Restricted characters in address
          domains       = +local_domains
          local_parts   = ^[.] : ^.*[@%!/|]


  deny    message       = Restricted characters in address
          domains       = !+local_domains
          local_parts   = ^[./|] : ^.*[@%!] : ^.*/\\.\\./


  accept  local_parts   = postmaster
          domains       = +local_domains
  require verify        = sender


  accept  hosts         = +relay_from_hosts
          control       = submission


  accept  authenticated = *
          control       = submission


  accept  domains       = +local_domains
          endpass
          verify        = recipient


  accept  domains       = +relay_to_domains
          endpass
          verify        = recipient


  deny    message       = relay not permitted


And the version that worked looks like this:

accept hosts = :

  deny    message       = Restricted characters in address
          domains       = +local_domains
          local_parts   = ^[.] : ^.*[@%!/|]


  deny    message       = Restricted characters in address
          domains       = !+local_domains
          local_parts   = ^[./|] : ^.*[@%!] : ^.*/\\.\\./


  accept  local_parts   = postmaster
          domains       = +local_domains
  require verify        = sender


  accept  domains       = +local_domains
          endpass
          message       = unknown user
          verify        = recipient


  accept  domains       = +relay_to_domains
          endpass
          message       = unrouteable address
          verify        = recipient


  accept  hosts         = +relay_from_hosts
          control       = submission


  accept  authenticated = *
          control       = submission


  deny    message       = relay not permitted


Outside of the order, I don't see much of anything different, but it works, so
I'm happy... though I'd like to know what I missed and why, since I didn't
change the defaults, I ran into this problem at all :-(

Thanks so much for your help!

--
Overspecialize, and you breed in weakness. It's slow death.
- Ghost in the Shell