[SOLVED] PMG Container on PVE Doesn't listen port 26

ercan412

New Member
Jul 24, 2020
5
0
1
34
I'm facing with the issue, I can't sent mail with it.
Code:
netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name  
tcp        0      0 0.0.0.0:8006            0.0.0.0:*               LISTEN      375/pmgproxy      
tcp        0      0 127.0.0.1:10022         0.0.0.0:*               LISTEN      352/perl          
tcp        0      0 127.0.0.1:10023         0.0.0.0:*               LISTEN      368/perl          
tcp        0      0 127.0.0.1:10024         0.0.0.0:*               LISTEN      368/perl          
tcp        0      0 127.0.0.1:85            0.0.0.0:*               LISTEN      353/pmgdaemon      
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      116/sshd          
tcp        0      0 127.0.0.1:5432          0.0.0.0:*               LISTEN      128/postgres      
tcp6       0      0 :::22                   :::*                    LISTEN      116/sshd          
tcp6       0      0 ::1:5432                :::*                    LISTEN      128/postgres

Code:
service postfix status
● postfix.service - Postfix Mail Transport Agent
   Loaded: loaded (/lib/systemd/system/postfix.service; enabled; vendor preset: enabled)
   Active: active (exited) since Fri 2020-07-24 13:44:42 UTC; 12min ago
  Process: 369 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
Main PID: 369 (code=exited, status=0/SUCCESS)

Jul 24 13:44:42 test systemd[1]: Starting Postfix Mail Transport Agent...
Jul 24 13:44:42 test systemd[1]: Started Postfix Mail Transport Agent.
 
Last edited:
Please post the container config - PMG containers need a static IP set (DHCP does not work)

else - try running `pmgconfig sync`
and then rebooting the container

I hope this helps!
 
Please post the container config - PMG containers need a static IP set (DHCP does not work)

else - try running `pmgconfig sync`
and then rebooting the container

I hope this helps!
Hi,

It has a static IP already. I ran pmgconfig, then saw misconfigured DNS domain field. My Issue is resolved now, thanks for your help.

Code:
sudo pmgconfig sync
could not change directory to "/root": Permission denied
could not change directory to "/root": Permission denied
postmap: warning: valid_hostname: numeric hostname: 8.8.8.8
unable to update postfix table /etc/pmg/domains: postmap: fatal: file /etc/postfix/main.cf: parameter mydomain: bad parameter value: 8.8.8.8
postmap: warning: valid_hostname: numeric hostname: 8.8.8.8
unable to update postfix table /etc/pmg/transport: postmap: fatal: file /etc/postfix/main.cf: parameter mydomain: bad parameter value: 8.8.8.8
postmap: warning: valid_hostname: numeric hostname: 8.8.8.8
unable to update postfix table /etc/pmg/tls_policy: postmap: fatal: file /etc/postfix/main.cf: parameter mydomain: bad parameter value: 8.8.8.8
newaliases: warning: valid_hostname: numeric hostname: 8.8.8.8
newaliases: fatal: file /etc/postfix/main.cf: parameter mydomain: bad parameter value: 8.8.8.8
could not change directory to "/root": Permission denied
could not change directory to "/root": Permission denied
could not change directory to "/root": Permission denied
could not change directory to "/root": Permission denied
could not change directory to "/root": Permission denied
could not change directory to "/root": Permission denied
could not change directory to "/root": Permission denied
could not change directory to "/root": Permission denied
could not change directory to "/root": Permission denied
could not change directory to "/root": Permission denied
 
then saw misconfigured DNS domain field. My Issue is resolved now, thanks for your help.
Glad you found the issue (and did change the domain paramter)

please mark the thread as 'SOLVED' - it helps others with similar problems - Thanks!
 
  • Like
Reactions: ercan412