Re: transport_maps equivalent for virtual mailboxes

2020-09-14 Thread Noel Jones
The users you put in transport_maps don’t use virtual_transport, so there’s no conflict — Noel Jones > On Sep 14, 2020, at 8:31 PM, Stephen Ingram wrote: > >  >> On Mon, Sep 14, 2020 at 5:59 PM Noel Jones wrote: > >> On 9/14/2020 7:25 PM, Stephen Ingram wrote: >> > >> > What I really wa

Re: transport_maps equivalent for virtual mailboxes

2020-09-14 Thread Stephen Ingram
On Mon, Sep 14, 2020 at 5:59 PM Noel Jones wrote: > On 9/14/2020 7:25 PM, Stephen Ingram wrote: > > > > What I really want is a recipient based relayhost_map, > > Yes, use transport_maps for that, with a recipient email address as > the key. > But I thought you couldn't use transport_maps along

Re: transport_maps equivalent for virtual mailboxes

2020-09-14 Thread Noel Jones
On 9/14/2020 7:25 PM, Stephen Ingram wrote: What I really want is a recipient based relayhost_map, Yes, use transport_maps for that, with a recipient email address as the key. -- Noel Jones

Re: transport_maps equivalent for virtual mailboxes

2020-09-14 Thread Stephen Ingram
On Mon, Sep 14, 2020 at 5:20 PM Noel Jones wrote: > On 9/14/2020 7:03 PM, Stephen Ingram wrote: > > I'm using virtual mailboxes (virtual_mailbox_domains, > > virtual_mailbox_maps, virtual_alias_maps) and now want to use > > something like transport_maps so I can control where the mail is > > rela

Re: transport_maps equivalent for virtual mailboxes

2020-09-14 Thread Noel Jones
On 9/14/2020 7:03 PM, Stephen Ingram wrote: I'm using virtual mailboxes (virtual_mailbox_domains, virtual_mailbox_maps, virtual_alias_maps) and now want to use something like transport_maps so I can control where the mail is relayed to based on the recipient domain. There appears to be no equi

transport_maps equivalent for virtual mailboxes

2020-09-14 Thread Stephen Ingram
I'm using virtual mailboxes (virtual_mailbox_domains, virtual_mailbox_maps, virtual_alias_maps) and now want to use something like transport_maps so I can control where the mail is relayed to based on the recipient domain. There appears to be no equivalent when you are using virtual mailboxes, like

Re: strangely incoming mails

2020-09-14 Thread James Moe
On 9/13/20 1:17 PM, Zsombor B wrote: > The thing is that all these emails are avoiding rspam completely (but > other incoming mails are filtered as it supposed to happen). > Does rspamd have pre-filters deciding if a mail is worthy of testing? Is there a filter that detects your custom heade

Re: spam uses my email address as sender in "header from"

2020-09-14 Thread Bill Cole
On 14 Sep 2020, at 6:35, Fourhundred Thecat wrote: Hello, I am receiving spam, where the "header from" is my actual email (ie, the email that this spam is delivered to) The "envelope from" that I see in postfix logs is some random email. What mechanisms are there to reject such messages, wh

Re: strangely incoming mails

2020-09-14 Thread Zsombor B
Hi, Thanks everyone for the replies. Sorry I can only answer this way now. This is postconf -n: https://pastebin.com/SmZG9SxG This is master.cf: https://pastebin.com/S6h83rxi 1) Bastian Blank: I started to check the steps on http://www.postfix.org/DEBUG_README.html but it will take some t

Re: Forward mail and obey SPF and DKIM

2020-09-14 Thread Dominic Raferd
On 14/09/2020 15:09, IL Ka wrote: On Mon, Sep 14, 2020 at 4:53 PM Dominic Raferd mailto:domi...@timedicer.co.uk>> wrote: On 14/09/2020 14:31, IL Ka wrote: > Hello. > I have postfix running on linux box. > > I setup OpenDKIM with both smtpd and non_smtp milters. > I also

Re: Forward mail and obey SPF and DKIM

2020-09-14 Thread IL Ka
Thank you. I see "SPF: SOFTFAIL" in my gmail message. Authentication results: spf=softfail (google.com: domain of transitioning some_user@sender_domain does not designate MY_IP_ADDR as permitted sender) While the message is not blocked, it is still not good to have SPF failure. Even when failure

Re: spam uses my email address as sender in "header from"

2020-09-14 Thread Benny Pedersen
Durga Prasad Malyala skrev den 2020-09-14 13:10: Can I reject messages that have different envelope from and header from? if you do this you will reject your own postings to maillist here Or what would be the best approach ? add adsp to from domain in dns, that way spamasassin can track it

Re: Forward mail and obey SPF and DKIM

2020-09-14 Thread Dominic Raferd
On 14/09/2020 14:31, IL Ka wrote: Hello. I have postfix running on linux box. I setup OpenDKIM with both smtpd and non_smtp milters. I also set my address in DNS as permitted IP for SPF. So far, so good. But I want all my mail to be forwarded to gmail. Some user sends me email from user@some_

Forward mail and obey SPF and DKIM

2020-09-14 Thread IL Ka
Hello. I have postfix running on linux box. I setup OpenDKIM with both smtpd and non_smtp milters. I also set my address in DNS as permitted IP for SPF. So far, so good. But I want all my mail to be forwarded to gmail. Some user sends me email from user@some_sender_domain. If I use .forward or

Re: spam uses my email address as sender in "header from"

2020-09-14 Thread Dominic Raferd
On 14/09/2020 11:35, Fourhundred Thecat wrote: I am receiving spam, where the "header from" is my actual email (ie, the email that this spam is delivered to) The "envelope from" that I see in postfix logs is some random email. What mechanisms are there to reject such messages, which use my emai

Re: [External] spam uses my email address as sender in "header from"

2020-09-14 Thread Kevin A. McGrail
On 9/14/2020 6:35 AM, Fourhundred Thecat wrote: > Can I reject messages that have different envelope from and header from? > > Or what would be the best approach ? Are you publishing an SPF record?  Are you using DKIM?  Are you publishing a DMARC policy (even one with policies of none)?  Are you

Re: spam uses my email address as sender in "header from"

2020-09-14 Thread Allen Coates
It has been suggested in the past that if the "From" header does not contain both the email address AND the name of its owner (see my address above) then it may be rejected - or at least flagged as suspect. Allen C On 14/09/2020 11:35, Fourhundred Thecat wrote: > Hello, > > I am receiving spam,

Re: spam uses my email address as sender in "header from"

2020-09-14 Thread Durga Prasad Malyala
Hi You can try implementing dmarc for your domain and use dmarc check while receiving mail. Cheers/DP On Mon, Sep 14, 2020, 16:06 Fourhundred Thecat <400the...@gmx.ch> wrote: > Hello, > > I am receiving spam, where the "header from" is my actual email (ie, the > email that this spam is delivered

spam uses my email address as sender in "header from"

2020-09-14 Thread Fourhundred Thecat
Hello, I am receiving spam, where the "header from" is my actual email (ie, the email that this spam is delivered to) The "envelope from" that I see in postfix logs is some random email. What mechanisms are there to reject such messages, which use my email address as sender ? Can I reject mess

Re: strangely incoming mails

2020-09-14 Thread Viktor Dukhovni
On Sun, Sep 13, 2020 at 10:17:16PM +0200, Zsombor B wrote: > I started some investigation and found this: > - for years now, because of reasons I put an extra header to all > outgoing emails (with header_checks and PREPEND) When Postfix *prepends* a header, the header is placed at the top of