IPv6 Relay

patrick7

Well-Known Member
Jan 25, 2018
40
3
48
31
Hi there

I'm trying to set up outbound mail relaying with IPv6. I added the network under Configuration->Mail Proxy->Networks (example: 2001:db8::/32).

But relaying over IPv6 is not possible:

Jan 25 22:38:35 mx1 postfix/smtpd[3779]: warning: 2001:db8::/32 is unavailable. unsupported dictionary type: 2001
Jan 25 22:38:35 mx1 postfix/smtpd[3779]: warning: smtpd_client_event_limit_exceptions: 2001:db8::/32: table lookup problem

As far as I know from postfix, IPv6 networks must be in brackets []. But ProxMox does not accept that - "cidr: invalid format - value does not look like a valid CIDR network".

How can I fix this issue?

Best regards
Patrick
 
  • Like
Reactions: patrick7
Version 5.0-55 fixed the format for IPv6 addresses in the main.cf, but I still get postfix errors (error: unsupported dictionary type: 2a01) because the master.cf gets updated with with an unquoted IPv6 address.

From the master.cf-template:
smtpd pass - - - - [% pmg.mail.max_smtpd_in %] smtpd
-o content_filter=scan:127.0.0.1:10024
-o receive_override_options=no_address_mappings
-o smtpd_discard_ehlo_keywords=silent-discard,dsn
-o mynetworks=127.0.0.0/8,[% ipconfig.int_ip %]
 
  • Like
Reactions: Jerico815
Just uploaded a fix for that - please can you test?

# wget http://download.proxmox.com/debian/pmg/dists/stretch/pmgtest/binary-amd64/pmg-api_5.0-59_all.deb
# dpkg -i pmg-api_5.0-59_all.deb

Same problem, but with whitelisted incoming mail (Configuration/ Mail Proxy/ Whitelist).
This fix solved the problem too.
Thank you very much.

Error message was:
Code:
Feb  2 21:54:46 mx1 postfix/postscreen[3022]: warning: XXXXXXXX::/64 is unavailable. unsupported dictionary type: 2a01
Feb  2 21:54:46 mx1 postfix/postscreen[3022]: warning: postscreen_access_list: XXXXXXXXXX::/64: table lookup problem
Feb  2 21:54:46 mx1 postfix/postscreen[3022]: warning: postscreen_access_list: permit_mynetworks: mynetworks lookup error -- ignoring the remainder of this access list
 

About

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!