Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Postfix to Exchange on office365

93 views
Skip to first unread message

zdeh...@enphaseenergy.com

unread,
Dec 6, 2016, 5:46:52 PM12/6/16
to
Greetings Everyone,

We have recenty migrated to office 365 exchange as our mail server. I am having trouble getting our postfix mail relay host to connect consistenty to the exchange server. The main issue seemed to be with getting the system to authenticate, but now I'm not so certain. I can send mail from the postfix host, and that gets delivered to exchange just fine, but mail that comes from any other host never gets passed allong. I'm seeing allot of these messages:

550 5.7.60 SMTP; Client does not have permissions to send as this sender (in reply to end of DATA command))

I have been trying to get postfix to authenticate as good...@enphaseenergy.com not the real name, but I am uing a valid user that can send and receive email. We use this mostly for things like printers, and for system messages from hosts running applications on linux servers. Its very simple to get those hosts pointed at the postfix relay host, but getting postfix to connect to Exchange seems to be the tough part. At least getting it to do it correctly.

I have looked at so manty different sites that I fear I am stepping on my own toes at this point.
If anyone has this worked out, I'd love to get a postconf -n printout and a description of any of the support files.

here is my postconf -n output

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
debug_peer_list = smtp.office365.com
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd
$daemon_directory/$process_name $process_id & sleep 5
html_directory = no
inet_protocols = all
local_recipient_maps =
local_transport = error:local mail delivery is disabled
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
message_size_limit = 20480000
mydestination =
myhostname = pet-mail-01.enphaseenergy.com
mynetworks = cidr:/etc/postfix/mynets
myorigin = enphaseenergy.com
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES
relayhost = [smtp.office365.com]:587
sample_directory = /usr/share/doc/postfix-2.10.1/samples
sender_canonical_classes = envelope_sender,header_sender
sender_canonical_maps = regexp:/etc/postfix/sender_canonical_maps
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_generic_maps = hash:/etc/postfix/generic
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/smtp_sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_tls_CAfile = /etc/ssl/certs/ca-bundle.trust.crt
smtp_tls_ciphers = export
smtp_tls_mandatory_ciphers = high
smtp_tls_protocols = !SSLv2, !SSLv3
smtp_tls_security_level = encrypt
smtp_use_tls = yes
unknown_local_recipient_reject_code = 550

and my supporting files:

generic
ro...@enphaseenergy.com good...@enphaseenergy.com

smtp_sasl_passwd
[smtp.office365.com]:587 good...@enphaseenergy.com:XXXXXXXX

transport
enphaseenergy.com smtp:[smtp.office365.com]:587

sender_canonical_maps
/.+/ good...@enphaseenergy.com

Thanks,
James "Zeke" Dehnert
--
mailto:zdeh...@enphase.com James "Zeke" Dehnert
-= Eschew Obfuscation =-
"Life is racing. Everything else is just waiting"
0 new messages