Re: Qmail to Gmail ( invalid From header)

Erwin Hoffmann <[email protected]> Tue, 28 Aug 2018 16:18:46 +0200
Newsgroups gmane.mail.qmail.general
Message-ID <[email protected]>
Hi Rejaine,



> Am 28.08.2018 um 15:43 schrieb Rejaine Silveira Monteiro <[email protected]>:
> 
> Hello people,
> 
> I have a Qmail server with a alias called .qmail-test (example) and I
> am trying to forward messages sent to this alias to a Gmail account,
> but it is being rejected by Google with the error: invalid From
> header.
> 

actually, Qmail (as MTA) does not touch the email header; except for including a Received: header.
Thus, this is a problem of the sending client.

Since you >>forward<< this message while receiving it, you can check and perhaps manipulate the header in the .qmail file.
Have a look at the mess822 from DJB.



> Emails sent by mail clients (Outlook, Thunderbird etc) are OK, but
> some applications that send automatic emails using java, phpmail, etc
> are being rejected with the above error (some do not have access to
> the code because they are third-party applications) Qmail to another
> Qmail are OK too.
> 
> Any idea how to solve this?
> 
> I have not tested with another SMTP tool other than Qmail (ie:
> Postifx), but I would like to keep Qmail ...
> 

This does not look like a Qmail problem, thus other MTAs probably would suffer from the same fate.

Regards.
--eh.



> --
> *Esta mensagem pode conter informações confidenciais ou privilegiadas,
> sendo seu sigilo protegido por lei. Se você não for o destinatário ou a
> pessoa autorizada a receber esta mensagem, não pode usar, copiar ou
> divulgar as informações nela contidas ou tomar qualquer ação baseada nessas
> informações. Se você recebeu esta mensagem por engano, por favor avise
> imediatamente ao remetente, respondendo o e-mail e em seguida apague-o.
> Agradecemos sua cooperação.*
> 

Dr. Erwin Hoffmann | FEHCom | http://www.fehcom.de | PGP Key-Id 7E4034BE
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE91BSzimpKm1LIXVDg/z5IO4Az2UFAluFWcYACgkQg/z5IO4A
z2XYUQ/+NZI3fctXh8H3HRN+xwjFFVKsAPierKgbS3InkD0EEiijl1NRiholtjAw
d1aRIwXO6iIoP+b67ohF525ce6Awszt7UobUwPbXjESC/ah9Gbt2FiVKwkL22HMV
niO9Rz3IrnLA6W+pHT1ju8j0173Fwx8s6ub2rwgsBLA1exPDoN7bFM96iyrSBlOw
cPjRPD/U00q5i4obPL4I4CjTabxeTFod6bVkt5MH8ZezaWeumuN+5JlgjDf+bjAL
rMpWNVgaS6nMtpfonxfrTn9fe5chrHOtu1I4ODX1B6PVm2qZ14eSVK8QbzhUwJUV
ZV8wbxzNv7otWyQZbb2CEYq/aUK5/F5/+0xv+IE9sPENoIE3toHu6cxeEAQaA6L8
j5l53+jDXG9w598Sym/3yQxtEnqBkV9kDzOnFLFl57aE/S9KihF//rksRkp/AGos
cdzOCw5gojD6AvNsQvCRTQZMOuKp/D5JmS7ZJ9uii1KOs9Uxpifgx8PMzVfkGEty
dOkKC8cqHNK8HIyVIruXxZChyZC/rVvls28QdVima5ugkE3TRTxaote7cWV/d4hK
0sNbsQKC18lOwEyvkQwZSD+jvvrn4VKA/mbEsW+sTNTCdXnWYTabRq4lGo3ZgbkQ
MGtDfp3w40qZNOvev+ynP3EcDZGJIpX/L5WFv91KOuh41ag38QE=
=/PNs
-----END PGP SIGNATURE-----