• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Input directsmtp - its a link from plesk for linux to other SMTP (i.e. MS-Exchange w. SMTP connector )

hitd

Basic Pleskian
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
 

Attachments

  • hitd-directsmtp.tar.bz2.zip
    5 KB · Views: 0
Additional note: There is a bug in MS-Server 2008 R2

[smtp]
smtpserver=target.mailserver-xxxxx.de
smtpport=25
enabled=1
# Windows 2008R2 need forcing to TLSv1 as long unpatched
# there are registry patches to enable TLSv1_1 and TLSV1_2
# otherwise connection will be closed immediately
sslversion=TLSv1

must used as long Windows ist unpatched.
 
Back
Top