Running Zentyal 6.2, Samba Active Directory enabled.
In smb.conf, these values are set
workgroup = mydomain (in lower case)
realm = mydomain.com
From the Linux command line on the server running Zentyal,
MYDOMAIN\myuser@dc:\home\myuser$ mail touser@gmail.com
Subject: Test Email
Test Email
The mail is rejected by GMail with this error
: host aspmx.l.google.com[108.177.15.27] said: 553-5.1.7 The sender address <MYDOMAIN\myuser@dc.mydomain.com> is not a valid 553 5.1.7 RFC-5321 address.
If I send an email myself, I see TWO mailboxes in /var/mail
MYDOMAIN\myuser
mydomain\myuser
When I open mail to read mail, it says there is no mail for MYDOMAIN\myuser
If I cat the file of mydomain\myuser I can see the email
Looking in /var/log/mail.log I can see
postfix/pickup[29633]: 0532F1403E4: uid=1000 from=<MYDOMAIN\myuser>
So it seems that post fix is doing two things:
- Not removing the MYDOMAIN part of my username from the outbound "from address"
- Changing the reply back to all lowercase (including the mydomain section)
Any thoughts what I can do to resolve this?