Hello all,
I've used mail/msmtp to easily send mails from my FreeBSD/OpenBSD boxes. There's a new service that requires frequent sending of such emails, and I can easily set this mailers with, for instance gmail accounts.
However, since this service will go live soon, I'd prefer to use our organization's MS Exchange. Unfortunately, I've been unable to set this up successfully, partly because I'm not too familiar with how MS Exchange operates, partly because I couldn't find any good help online on this topic.
I'd appreciate any help on this.
This is my default configuration file:
A couple of things I'm not clear about. I though our mail.domain.com would listen on something like port 25. But it doesn't; a wireshark inspection on what's going on when I start Outlook on my Windows machine reveals Outlook first trying in port 135, then failin and going for port 443. This is where TSL negotiations goes, etc.
This is why I specified port 443, but I'm not sure that's correct. We have OWA (Outlook Web Application) so we can access our corporate emails over https.
When I run something like this:
There's TCP establish over 443 as seen in Wireshark, but that's it.
Like I said any pointers on this would be awesome. I'd prefer not to go with something like postfix for this.
Kind Regards
I've used mail/msmtp to easily send mails from my FreeBSD/OpenBSD boxes. There's a new service that requires frequent sending of such emails, and I can easily set this mailers with, for instance gmail accounts.
However, since this service will go live soon, I'd prefer to use our organization's MS Exchange. Unfortunately, I've been unable to set this up successfully, partly because I'm not too familiar with how MS Exchange operates, partly because I couldn't find any good help online on this topic.
I'd appreciate any help on this.
This is my default configuration file:
Code:
# ------------------------------------------------------------------------------
# Accounts
# ------------------------------------------------------------------------------
# Main Account
defaults
tls on
tls_starttls on
tls_trust_file /etc/ssl/certs/RootCA.cer
account username@domain.com
host mail.domain.com
port 443
#auth on
from username@domain.com
user username
password password
logfile /var/log/msmtp.log
A couple of things I'm not clear about. I though our mail.domain.com would listen on something like port 25. But it doesn't; a wireshark inspection on what's going on when I start Outlook on my Windows machine reveals Outlook first trying in port 135, then failin and going for port 443. This is where TSL negotiations goes, etc.
This is why I specified port 443, but I'm not sure that's correct. We have OWA (Outlook Web Application) so we can access our corporate emails over https.
When I run something like this:
Code:
# echo "TEST" | /usr/local/bin/msmtp -a username@domain.com a_user@domain.com
^C
There's TCP establish over 443 as seen in Wireshark, but that's it.
Like I said any pointers on this would be awesome. I'd prefer not to go with something like postfix for this.
Kind Regards