spfquery show fail for exists flags


Aug 12, 2019
Our pmg installation says mailserver is not a designated for addresses which spf record has exists flag.
External online test tool say it must pass.

The following commandalso show the fail on our server:

# spfquery -s test[at]unicredit.eu --ip-address
Please see http://www.openspf.org/Why?s=mfrom;id=test%40unicredit.eu;ip=;r=pmg.example.com
unicredit.eu: Sender is not authorized by default to use 'test[at]unicredit.eu' in 'mfrom' identity (mechanism '-all' matched)
Received-SPF: fail (unicredit.eu: Sender is not authorized by default to use 'test[at]unicredit.eu' in 'mfrom' identity (mechanism '-all' matched)) receiver=pmg.example.com; identity=mailfrom; envelope-from="test[at]unicredit.eu"; client-ip=

And here is a tracking center log about a reject:

Jun 22 08:36:08 pmg postfix/smtpd[15715]: connect from esa11.hc437-5.eu.iphmx.com[]
Jun 22 08:36:08 pmg postfix/smtpd[15715]: Anonymous TLS connection established from esa11.hc437-5.eu.iphmx.com[]: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)
Jun 22 08:36:08 pmg postfix/smtpd[15715]: NOQUEUE: reject: RCPT from esa11.hc437-5.eu.iphmx.com[]: 554 5.7.1 <test[at]example.com>: Recipient address rejected: Rejected by SPF: is not a designated mailserver for test%40unicredit.eu (context mfrom, on pmg.example.hu); from=<test[at]unicredit.eu> to=<test[at]example.com> proto=ESMTP helo=<esa11.hc437-5.eu.iphmx.com>
Jun 22 08:36:13 pmg postfix/smtpd[15715]: disconnect from esa11.hc437-5.eu.iphmx.com[] ehlo=2 starttls=1 mail=1 rcpt=0/2 rset=1 quit=1 commands=6/8

I replace @ character for the post, and masquerade the real users but the original domain.

Is there config to enable the resolving of exist flags or what could be the problem?
Other SPF checks working well without exist.


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!