Quarantine report sending with redirect no longer sends.


New Member
Aug 17, 2023
I am trying to send the quarantine notifications via cli by the command:
pmgqm send -receiver {address} -timespan week -redirect {address}
But the email is not sent, when I run the command again but without the redirection option the email goes normally.

I noticed that through the api (POST /api2/json/quarantine/sendlink) there is no option to send with redirection.

I identified these two error messages in the syslog:
> smtp error - got: 555 5.5.4 Unsupported option: SMTPUTF8
> smtp from: ERROR at /usr/share/perl5/PMG/Utils.pm line 249.

Analyzing the code I commented lines 230 - 235:
foreach my $target (@$targets) {
if (utf8::is_utf8($target)) {
$has_utf8_targets = 1;

Making $has_utf8_targets always equal to false and thus never forcing the SMTPUTF8 option on the sender when it is not utf8.

After this change, the routine started working again, but I wouldn't want to depend on this change in the code, since I don't know the side effects and I'm also susceptible to reversals in PMG updates.

Does anyone have any other solutions?
What's your `pmgversion -v` - I think most of those issues were fixed before 7.3 ... also PMG::Utils does currently not contain 'is_utf8' ...

try upgrading to the latest version.

I hope this helps!
My 'pmgversion -v' displayed:

proxmox-mailgateway: 6.4-1 (API: 6.4-4/1c8a73c7, running kernel: 5.4.203-1-pve) pmg-api: 6.4-4 pmg-gui: 2.4-4 pve-kernel-5.4: 6.4-20 pve-kernel-helper: 6.4-20 pve-kernel-5.4.203-1-pve: 5.4.203-1 pve-kernel-5.4.189-2-pve: 5.4.189-2 pve-kernel-5.4.174-2-pve: 5.4.174-2 pve-kernel-5.4.143-1-pve: 5.4.143-1 pve-kernel-5.4.128-1-pve: 5.4.128-2 pve-kernel-5.4.119-1-pve: 5.4.119-1 pve-kernel-5.4.106-1-pve: 5.4.106-1 pve-kernel-5.4.103-1-pve: 5.4.103-1 pve-kernel-5.4.98-1-pve: 5.4.98-1 pve-kernel-5.4.78-2-pve: 5.4.78-2 pve-kernel-5.4.73-1-pve: 5.4.73-1 clamav-daemon: 0.103.7+dfsg-0+deb10u1 libarchive-perl: 3.3.3-1 libjs-extjs: 6.0.1-10 libjs-framework7: 4.4.7-1 libpve-apiclient-perl: 3.1-3 libpve-common-perl: 6.4-5 libpve-http-server-perl: 3.2-5 libxdgmime-perl: 0.01-5 lvm2: 2.03.02-3 pmg-docs: 6.4-1 pmg-log-tracker: 2.2.0-1 postgresql-11: 11.18-0+deb10u1 proxmox-mini-journalreader: 1.1-1 proxmox-spamassassin: 3.4.6-1 proxmox-widget-toolkit: 2.6-2 pve-firmware: 3.3-2 pve-xtermjs: 4.7.0-3 zfsutils-linux: 2.0.7-pve1


The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!