On 07/06/17 15:59, Aki Tuomi wrote:
On 07.06.2017 01:18, Hugh Bragg wrote:
I'm trying to understand how to deliver mail to an address locally which is popped from my isps email account.
I access and keep these emails backed up on dovecot and use postfix smtp to deliver mail.
The problem is that while fetchmail uses dovecot lda directly, postfix can't include my isps domain in its $mydestination because I won't be able to send mail to other users in that domain.
I want to be able to send mail to other users I'm popping for in that domain, or even send myself mail.
Currently postfix just relays the mail to the isp and it returns through fetchmail, but I'd like to have it delivered locally and still be able to email my isp users that I don't pop.
As far as I can tell, this can't be done because virtual users have to be in postfix $mydestination.
Does someone have a better setup they can share or know how to do this?
Hugh Perhaps you should list it as virtual_mailbox_domain then? http://www.postfix.org/VIRTUAL_README.html#virtual_mailbox
Aki
Thanks,
But I think if I use that then mails I send to anyone else in my isps domain will be rejected. I want those mails to go to the default relayhost, which belongs to my isp. Just for clarity, If an address is not in $mydestination or $virtual_mailbox_domains, I'm trying to get postfix to lookup the user and if it finds it then it uses dovecot lda, otherwise it uses relayhost. I've signed up to the postfix mailing list so I'll see if they can field this one there.
Hugh