No mail delivery

crazy-to-bike

Member
Dec 9, 2011
34
0
6
www.crazy-to-bike.de
Hello,

my proxmox server has a non static internet connection.
I want to deliver mails to an extern mail adress using a relayhost.

Actually postfix doesn't deliver mails.

Trying to send a mail to user@domain.de

/var/log/mail.log
Code:
[FONT=-moz-fixed]Apr 14 20:24:02 proxmox postfix/master[17610]: reload -- version 2.7.1,  configuration /etc/postfix 
Apr 14 20:24:19 proxmox postfix/pickup[19321]: 9AFBA1CA0B5: uid=0  from=<root> 
Apr 14 20:24:19 proxmox postfix/cleanup[19338]: 9AFBA1CA0B5:  message-id=<20120414182419.9AFBA1CA0B5@proxmox.local> 
Apr 14 20:24:19 proxmox postfix/qmgr[19322]: 9AFBA1CA0B5:  from=<root@relaydomain.de>, size=294, nrcpt=1 (queue active) 
Apr 14 20:24:19 proxmox postfix/smtp[19340]: certificate verification   failed for mbox1.belwue.de[129.143.2.21]:25: untrusted issuer   /C=DE/O=Deutsche Telekom AG/OU=T-TeleSec Trust Center/CN=Deutsche 
Telekom Root CA 2 
Apr 14 20:24:22 proxmox postfix/smtp[19340]: 9AFBA1CA0B5:   to=<user@domain.de>, relay=mbox1.belwue.de[129.143.2.21]:25,   delay=2.8, delays=0.02/0.01/0.76/2, dsn=5.0.0, status=bounced 
(host mbox1.belwue.de[129.143.2.21] said: 573 root@[/FONT][FONT=-moz-fixed]proxmoxdomain.de[/FONT][FONT=-moz-fixed]  unknown user account (in reply to MAIL FROM command)) 
Apr 14 20:24:26 proxmox postfix/cleanup[19338]: 7F0D71CA0BE:  message-id=<20120414182426.7F0D71CA0BE@proxmox.local> 
Apr 14 20:24:26 proxmox postfix/bounce[19346]: 9AFBA1CA0B5: sender  non-delivery notification: 7F0D71CA0BE 
Apr 14 20:24:26 proxmox postfix/qmgr[19322]: 7F0D71CA0BE: from=<>,  size=2155, nrcpt=1 (queue active) 
Apr 14 20:24:26 proxmox postfix/qmgr[19322]: 9AFBA1CA0B5: removed 
Apr 14 20:24:26 proxmox postfix/local[19353]: 7F0D71CA0BE:   to=<admin@proxmoxdomain.de>,  orig_to=<root@proxmoxdomain.de>, relay=local,  delay=0.01,  delays=0/0/0/0, dsn=5.1.1, status=bounced (unknown user:  "admin") 
Apr 14 20:24:26 proxmox postfix/qmgr[19322]: 7F0D71CA0BE: removed [/FONT]


/etc/postfix/main.cf
Code:
[FONT=-moz-fixed]# See /usr/share/postfix/main.cf.dist for a commented, more complete version 

myhostname=proxmox.local 

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) 
biff = no 

# appending .domain is the MUA's job. 
append_dot_mydomain = no 

# Uncomment the next line to generate "delayed mail" warnings 
#delay_warning_time = 4h 

alias_maps = hash:/etc/aliases 
alias_database = hash:/etc/aliases 
mydestination = proxmoxdomain.de, $myhostname, localhost.$mydomain, localhost 
relayhost = mbox1.belwue.de 
mynetworks = 127.0.0.0/8 
inet_interfaces = all 
recipient_delimiter = + 

myorigin = /etc/mailname 
mailbox_size_limit = 0 
# inet_protocols = ipv4 

# uncomment the following lines to activate smtp authentication 
smtp_sasl_auth_enable = yes 
smtp_sasl_password_maps = hash:/etc/postfix/smtp_auth 
smtp_sasl_security_options = noanonymous 
smtp_sasl_mechanism_filter = plain, login 
smtp_use_tls=yes 
#smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache 
smtp_tls_note_starttls_offer = yes 
smtp_starttls_timeout = 10s 

# mailbox_command = procmail -a "$EXTENSION" [/FONT]


/etc/postfix/smtp_auth
Code:
[FONT=-moz-fixed]mbox1.belwue.de                 <username>@proxmoxdomain.de:<password>[/FONT]


smtp_auth was hashed, postfix restarted.

/etc/aliases
Code:
[FONT=-moz-fixed]postmaster: root 
nobody: root 
hostmaster: root 
webmaster: root 
www: root 

root: admin@proxmoxdomain.de[/FONT]


newaliases was done.

What's / where's the problem?
 
Hi,
try
Code:
smtp_tls_security_level= may
instead of smtp_use_tls=yes (is obsolete).

Udo

ok i'll try.

But in my opinion the main problem ist this:
Code:
[FONT=-moz-fixed]Apr 14 20:24:22 proxmox postfix/smtp[19340]: 9AFBA1CA0B5:   to=<user@domain.de>, relay=mbox1.belwue.de[129.143.2.21]:25,   delay=2.8, delays=0.02/0.01/0.76/2, dsn=5.0.0, status=bounced  (host mbox1.belwue.de[129.143.2.21] said: 573 root@[/FONT][FONT=-moz-fixed]proxmoxdomain.de[/FONT][FONT=-moz-fixed]  unknown user account (in reply to MAIL FROM command))[/FONT]

and this:
Code:
[FONT=-moz-fixed]Apr 14 20:24:26 proxmox postfix/local[19353]: 7F0D71CA0BE:   to=<admin@proxmoxdomain.de>,  orig_to=<root@proxmoxdomain.de>, relay=local,  delay=0.01,  delays=0/0/0/0, dsn=5.1.1, status=bounced (unknown user:  "admin") [/FONT]

But I don't know what's wrong.

I think the /etc/aliases is ok.
 
I solved the Problem.

"unknown user (local)" I could solve by adding a local user on the proxmox server.

"unknown user (relay)" I could solve by adding the local username as alias to the used mail account on the relayhost.

Now I'll try if backup mails will also be sent to the given external mail adress.
 

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!