A long time ago, a friend got MS-Exchange as his internal Server. Of course, there are some solutions like fetchmail to move some mails to a exchange site which is using smtp connector.
So i wrote a mailhandler for plesk. This is push mode by plesk for linux side to exchange, not poll by exchange from linux.
you can enable this mailhandler for single mail-accounts or whole domains.
Let's look at the maillog
Mar 15 01:26:44 puck983 postfix-local[32466]: D09775CC0DBF: hitd-renattach: stderr: PASS
Thats from hitd-renattach --> see other thread about renattatch
Mar 15 01:26:45 puck983 postfix-local[32466]: D09775CC0DBF: hitd-directsmtp: stderr: LOG DIRECTSMTP recipient [email protected]
Mar 15 01:26:45 puck983 postfix-local[32466]: D09775CC0DBF: hitd-directsmtp: stderr: LOG DIRECTSMTP 250 2.6.0 <M36265721L35013117Q38012774E@ozselqw> [InternalId=1106] Queued mail for delivery
That's message from exchange, what told us, to accept mail for delivery
Mar 15 01:26:46 puck983 postfix-local[32466]: D09775CC0DBF: hitd-directsmtp: stderr: LOG DIRECTSMTP 221 2.0.0 Service closing transmission channel
Mar 15 01:26:46 puck983 postfix-local[32466]: D09775CC0DBF: hitd-directsmtp: stderr: LOG DIRECTSMTP connection was secured by TLSv1_2
Mar 15 01:26:46 puck983 postfix-local[32466]: D09775CC0DBF: hitd-directsmtp: stderr: LOG DIRECTSMTP result: STOP
Mar 15 01:26:46 puck983 postfix-local[32466]: D09775CC0DBF: hitd-directsmtp: stderr: STOP
Mar 15 01:26:46 puck983 postfix-local[32466]: message discarded by a mail handler
Mar 15 01:26:46 puck983 postfix/pipe[32465]: D09775CC0DBF: to=<[email protected]>, relay=plesk_virtual, delay=3.2, delays=1.6/0.01/0/1.6, dsn=2.0.0, status=sent (delivered via plesk_virtual service)
NOTE: there is no SMTP-Auth! Security concept is: only accepting incoming mail from linux server running plesk by fix IP, So we don't need to store a password here.
SSL or TLS is enabled up to max level by default and reported in maillog.
Another feature is to be able using a dyndns target. dns resolving is done for each transmission
regards
Peter
So i wrote a mailhandler for plesk. This is push mode by plesk for linux side to exchange, not poll by exchange from linux.
you can enable this mailhandler for single mail-accounts or whole domains.
Let's look at the maillog
Mar 15 01:26:44 puck983 postfix-local[32466]: D09775CC0DBF: hitd-renattach: stderr: PASS
Thats from hitd-renattach --> see other thread about renattatch
Mar 15 01:26:45 puck983 postfix-local[32466]: D09775CC0DBF: hitd-directsmtp: stderr: LOG DIRECTSMTP recipient [email protected]
Mar 15 01:26:45 puck983 postfix-local[32466]: D09775CC0DBF: hitd-directsmtp: stderr: LOG DIRECTSMTP 250 2.6.0 <M36265721L35013117Q38012774E@ozselqw> [InternalId=1106] Queued mail for delivery
That's message from exchange, what told us, to accept mail for delivery
Mar 15 01:26:46 puck983 postfix-local[32466]: D09775CC0DBF: hitd-directsmtp: stderr: LOG DIRECTSMTP 221 2.0.0 Service closing transmission channel
Mar 15 01:26:46 puck983 postfix-local[32466]: D09775CC0DBF: hitd-directsmtp: stderr: LOG DIRECTSMTP connection was secured by TLSv1_2
Mar 15 01:26:46 puck983 postfix-local[32466]: D09775CC0DBF: hitd-directsmtp: stderr: LOG DIRECTSMTP result: STOP
Mar 15 01:26:46 puck983 postfix-local[32466]: D09775CC0DBF: hitd-directsmtp: stderr: STOP
Mar 15 01:26:46 puck983 postfix-local[32466]: message discarded by a mail handler
Mar 15 01:26:46 puck983 postfix/pipe[32465]: D09775CC0DBF: to=<[email protected]>, relay=plesk_virtual, delay=3.2, delays=1.6/0.01/0/1.6, dsn=2.0.0, status=sent (delivered via plesk_virtual service)
NOTE: there is no SMTP-Auth! Security concept is: only accepting incoming mail from linux server running plesk by fix IP, So we don't need to store a password here.
SSL or TLS is enabled up to max level by default and reported in maillog.
Another feature is to be able using a dyndns target. dns resolving is done for each transmission
regards
Peter