Re: Qmail to Gmail ( invalid From header)

Michael DiMartino <[email protected]> Tue, 28 Aug 2018 20:29:32 -0400
Newsgroups gmane.mail.qmail.general
Message-ID <CANX2mUHk291EEarSYiDJhbzgnKwd=6nELugGP-uy3cu85swjDw@mail.gmail.com>
Isn’t qmail dead

On Tue, Aug 28, 2018 at 2:40 PM Bob Hutchinson lists <
[email protected]> wrote:

> On 28/08/18 14:43, Rejaine Silveira Monteiro wrote:
> > 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.
> >
> > 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 ...
> >
> My guess is that Google is checking that the domain of the From email
> address
>
> a) resolves to an IP
> b) has MX record(s) that resolve to the IP of the server that delivered
> the email to Google.
>
> You could try setting /etc/mailname to such a domain or ensure the
> domain (which might be the server domain name) resolves correctly.
>
> You should also check if the errant mail clients (java, phpmail, etc)
> either use /etc/mailname or have config to let you set the From address.
>
-- 
Sent from Gmail Mobile