Re: dovecot-lda as local mailer and access to manage sive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2011-07-22 at 11:41 -0500, Chris Adams wrote:
> Once upon a time, Chris Kottaridis <chriskot@xxxxxxxxxxxxx> said:
> > I was expecting
> > 
> > /var/vmail/<domain>/Maildir
> > 
> > where <domain> would be $j from sendmail, which I would have assumed was
> > my hostname.
> 
> The issue may be on the Dovecot side; my example included both "-d $u"
> and "-a $u+$h@$j" args to deliver, and I think Dovecot may be using the
> -d arg instead of the -a arg for figuring the %u/%n/%d fields.  IIRC I
> added the -a for Sieve processing (to get the +plus part of the
> address).

Yeah, I thought that as well, and I think I tried that with no
difference, but I'll try it again to make sure.
> 
> Another way of handling it would be to setup a custom sendmail ruleset
> for envelope recipient address rewriting.  The default EnvToL strips off
> the domain; something like (mostly copied from EnvToL, untested of
> course):
> 
> LOCAL_RULESETS
> SEnvToL
> R$+ < @ $+ >		$: $1 @ $2
> R$+ < @ $* >		$: $1 @ $&m
> R$+ + $*		$: < $&{addr_type} > $1 + $2
> R<e s> $+ + $*		$: $1
> R< $* > $+		$: $2
> 
> This would affect other mailers that use this ruleset of course (prog is
> the only other by default).

Yeah, I was wondering if there was another sendmail macro that
represents the domain of the To address that  made it conclude it
belonged to this machine. But maybe there isn't.

I want to be careful about dinking with rules. That was what I
originally tried. What I wanted was some users to use dovecot-lda for
delivery and others to use the standard mailer. For example I really
want root to still go to /var/mail as well as other non-real users. So,
I added the dovecot mailer and was dinking with rules sets to have root
to use local mailer and other users resolve to dovecot mailer. I got
quite entangled in the whole thing. I was close but couldn't quite get
there. For now I am content with root ending up in /var/vmail.

Thanks for the help and the suggestions.

Thanks
Chris Kottaridis
> 
> -- 
> Chris Adams <cmadams@xxxxxxxxxx>
> Systems and Network Administrator - HiWAAY Internet Services
> I don't speak for anybody but myself - that's enough trouble.

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux