I'm creating an email a friend type system where I need our mail server to send emails from the user of the site to their friend, i.e. from [email protected], to [email protected].
If, as is the case in this example, the user's are both part of Gmail the friend would receive an email with the warning "This message may not have been sent by: [email protected].
I thought that by then adding a 'sender' header with our email (e.g. [email protected]) this should indicate to Gmail that we are the sender and are effectively openly spoofing the sender at their request. Is this true, can you get around Gmail's warning using the 'sender' header?
I realise this is similar to the following question but I'm more interested in whether the sender header should have an effect: Email sent from web server causes gmail to treat as phishing. How to get rid of this?
More info: I'm using netmailbot to send emails from our mail server using the '-customheader' parameter with 'sender' and 'x-sender' e.g. '-customheader sender:[email protected] x-sender:[email protected]'
mutt
: use this config: gitlab.com/muttmua/mutt/wikis/UseCases/Gmail – Ciro Santilli 新疆再教育营六四事件法轮功郝海东