• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Mail Handler at "before-remote" is not getting the whole mail

BoMbY

New Pleskian
Hi all,

yesterday I tried to implement a simple Plesk Mail Handler (as described in this API reference) for a Sender Rewriting Scheme.

Unfortunately the handler at the hook "before-remote" is not getting the whole mail, and any changes to the mail seem to be ignored. All I'm getting is something like this:

Code:
Received: from my.host.invalid (localhost [127.0.0.1])
	by my.host.invalid (Postfix) with ESMTP id 3AB84CC303DC
	for <[my_name]@googlemail.com>; Sun, 10 Apr 2011 18:51:43 +0200 (CEST)
Message-Id: <20110410165143.3AB84CC303DC@my.host.invalid>
Date: Sun, 10 Apr 2011 18:51:43 +0200 (CEST)
From: [my_name]@gmx.net
To: undisclosed-recipients:;

The other hooking points work like described in the reference (mail is written completely to STDIN, and I write it back to STDOUT, including my changes). The funny thing is, the default DKIM handlers from Parallels seem to work at this point. Are they using some trick? Or is this behavior only occurring because I'm using Postfix and not Qmail?

I think it might have to do something with this part of the configuration in the Postfix master.cf:

Code:
plesk_virtual unix - n n - - pipe flags=DORhu user=popuser:popuser argv=/usr/lib/plesk-9.0/postfix-local -f ${sender} -d ${recipient} -p /var/qmail/mailnames
127.0.0.1:10025 inet n n n - - spawn user=mhandlers-user argv=/usr/lib/plesk-9.0/postfix-queue 127.0.0.1 10027 before-queue
127.0.0.1:10026 inet n - - - - smtpd  -o smtpd_client_restrictions=  -o smtpd_helo_restrictions=  -o smtpd_sender_restrictions=  -o smtpd_recipient_restrictions=permit_mynetworks,reject  -o smtpd_data_restrictions=  -o receive_override_options=no_unknown_recipient_checks
127.0.0.1:10027 inet n n n - - spawn user=mhandlers-user argv=/usr/lib/plesk-9.0/postfix-queue 127.0.0.1 10026 before-remote
plesk_saslauthd unix y y y - 1 plesk_saslauthd status=5 listen=6 dbpath=/plesk/passwd.db

But honestly, I've no clue about how this config works, and how I could get what I need - or if this is just a coincidence with the naming.

Any hints would be appreciated ...

Thanks and Regards,
BoMbY
 
Back
Top