On 2015-02-04 07:45, Hugo Osvaldo Barrera wrote:
> Hi,
>
> I've several domains which are all forwarded to my own address (as you may
> conclude if you've followed my recent emails to the list).
>
> I'm trying to use lmtp instead of an lda. I currently just pass the recipient
> (eg: the mailbox to which the email is saved) as an argument to the lda. Of
> course, lmtp doesn't have this, so I need to change the "RCPT TO" that smtpd
> passes via lmtp.
>
> I'm currently using:
>
> table catchall { "@" => user }
> table mydomains { "*.barrera.io", "barrera.io" }
> table myuserbase { user => 1000:1000:/var/empty }
> # [...]
> accept from any for domain <mydomains> virtual <catchall> userbase
> <myuserbase> [...]
>
> So emails are currenly mapped to user@$DOMAIN ($DOMAIN being the domain it was
> sent to). I'd basically need to map them to user@domain (domain being a static
> value regardless of original recipient).
>
> How do I achieve this? Am I doing something wrong?
>
> I tried:
>
> table catchall { "@" => [email protected] }
>
> But this resulted in more errors, and I suspect it was not the correct
> approach.
>
> Thanks,
>
> --
> Hugo Osvaldo BarreraOk, so I kinda advanced on this a bit. I need smtpd to tell the lmtp service that the email is mean for "[email protected]", for any email matching any of the domains in the table `mydomains`. My current mapping `{ "@" => user }` will make smtpd tell the lmtp service that the email is meant for "user". If I change the mapping to `{ "@" => [email protected] }`, then I end up with a circular mapping ([email protected] => [email protected], ad infinitum), so, naturally, it fails horrible. So, is there any way around this, and have smtpd tell the lmtp service that the email is destined to a different email address? Thanks, -- Hugo Osvaldo Barrera A: Because we read from top to bottom, left to right. Q: Why should I start my reply below the quoted text?
pgp3U7nKxf6qC.pgp
Description: PGP signature
