STMP Relay not working

ferret

Member
Dec 6, 2020
21
2
8
23
Hi,

I simply wish send email to external email address post scheduled backup.

I have followed instructions on several post from this forum with no suggest, although I am able to successfully emails with the following manually;
echo "this is a test email." | mailx -r admin@xyz.net -s hello geoff@abc.com

Mail log, note the "(unknown user: "admin")" and "from=<>" ;
May 30 03:16:49 pve3 postfix/cleanup[28363]: 58CCF21D83: message-id=<20210529171649.58CCF21D83@xyz.net>
May 30 03:16:49 pve3 postfix/bounce[28366]: 4AD4F21D95: sender non-delivery notification: 58CCF21D83
May 30 03:16:49 pve3 postfix/qmgr[12986]: 58CCF21D83: from=<>, size=2228, nrcpt=1 (queue active)
May 30 03:16:49 pve3 postfix/qmgr[12986]: 4AD4F21D95: removed
May 30 03:16:49 pve3 postfix/local[28365]: 58CCF21D83: to=<admin@xyz.net>, orig_to=<root@.pve.xyz.net>, relay=local, delay=0.03, delays=0.02/0/0/0.02, dsn=5.1.1, status=bounced (unknown user: "admin")
May 30 03:16:49 pve3 postfix/qmgr[12986]: 58CCF21D83: removed

The following replicates the same error message above;
echo "test" | /usr/bin/pvemailforward

Mail.cf;
myhostname=xyz.net
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
append_dot_mydomain = no
inet_protocols = ipv4
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
#mydestination = $myhostname, localhost.$mydomain, localhost
mynetworks = 127.0.0.0/8
inet_interfaces = loopback-only
recipient_delimiter = +
compatibility_level = 2
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = static:USERNAME : PASSWORD
smtp_sasl_security_options = noanonymous
smtp_tls_security_level = may
header_size_limit = 4096000
relayhost = [mail.smtp2go.com]:2525
relay_destination_concurrency_limit = 20

Any assistance would be very much appreciated.

Cheers
 
Last edited:
Hi,

I simply wish send email to external email address post scheduled backup.

I have followed instructions on several post from this forum with no suggest, although I am able to successfully emails with the following manually;
echo "this is a test email." | mailx -r admin@xyz.net -s hello geoff@abc.com

Mail log, note the "(unknown user: "admin")" and "from=<>" ;
May 30 03:16:49 pve3 postfix/cleanup[28363]: 58CCF21D83: message-id=<20210529171649.58CCF21D83@xyz.net>
May 30 03:16:49 pve3 postfix/bounce[28366]: 4AD4F21D95: sender non-delivery notification: 58CCF21D83
May 30 03:16:49 pve3 postfix/qmgr[12986]: 58CCF21D83: from=<>, size=2228, nrcpt=1 (queue active)
May 30 03:16:49 pve3 postfix/qmgr[12986]: 4AD4F21D95: removed
May 30 03:16:49 pve3 postfix/local[28365]: 58CCF21D83: to=<admin@xyz.net>, orig_to=<root@.pve.xyz.net>, relay=local, delay=0.03, delays=0.02/0/0/0.02, dsn=5.1.1, status=bounced (unknown user: "admin")
May 30 03:16:49 pve3 postfix/qmgr[12986]: 58CCF21D83: removed

The following replicates the same error message above;
echo "test" | /usr/bin/pvemailforward

Mail.cf;
myhostname=xyz.net
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
append_dot_mydomain = no
inet_protocols = ipv4
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
#mydestination = $myhostname, localhost.$mydomain, localhost
mynetworks = 127.0.0.0/8
inet_interfaces = loopback-only
recipient_delimiter = +
compatibility_level = 2
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = static:USERNAME : PASSWORD
smtp_sasl_security_options = noanonymous
smtp_tls_security_level = may
header_size_limit = 4096000
relayhost = [mail.smtp2go.com]:2525
relay_destination_concurrency_limit = 20

Any assistance would be very much appreciated.

Cheers
Resolved the issue by creating a smtp_generic_maps = hash:/etc/postfix/generic in main.cf with replacing sender address.
 

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!