timmy
07/02/22, 17:15
Op vps2 draaien een paar domeinen.
Op vps2 draait Postfix.
Als er web formulier wordt ingevuld wordt deze mbv msmtp doorgestuurd naar vps1.
Sinds enige tijd werkt het niet meer. Naar wat debuggen krijg ik het volgende:
echo "Test email using msmtp" | msmtp -v mail@vps1.nl
loaded system configuration file /etc/msmtprc
ignoring user configuration file /root/.msmtprc: No such file or directory
falling back to default account
using account default from /etc/msmtprc
host = ip.vps1.mail.server
port = 587
source ip = (not set)
proxy host = (not set)
proxy port = 0
timeout = off
protocol = smtp
domain = localhost
auth = none
user = (not set)
password = (not set)
passwordeval = (not set)
ntlmdomain = (not set)
tls = off
tls_starttls = on
tls_trust_file = system
tls_crl_file = (not set)
tls_fingerprint = (not set)
tls_key_file = (not set)
tls_cert_file = (not set)
tls_certcheck = on
tls_min_dh_prime_bits = (not set)
tls_priorities = (not set)
auto_from = off
maildomain = (not set)
from = main@domain.nl
add_missing_from_header = on
add_missing_date_header = on
remove_bcc_headers = on
dsn_notify = (not set)
dsn_return = (not set)
logfile = (not set)
logfile_time_format = (not set)
syslog = (not set)
aliases = /etc/aliases
reading recipients from the command line
<-- 220 mail.vps1.nl ESMTP Postfix (Debian/GNU)
--> EHLO localhost
<-- 250-mail.vps1.nl
<-- 250-PIPELINING
<-- 250-SIZE 82428800
<-- 250-ETRN
<-- 250-STARTTLS
<-- 250-ENHANCEDSTATUSCODES
<-- 250-8BITMIME
<-- 250-DSN
<-- 250 SMTPUTF8
--> MAIL FROM:<mail@vps2.nl>
--> RCPT TO:<mail@vps1.nl>
--> DATA
<-- 530 5.7.0 Must issue a STARTTLS command first
msmtp: envelope from address mail@vps2.nl not accepted by the server
msmtp: server message: 530 5.7.0 Must issue a STARTTLS command first
msmtp: could not send mail (account default from /etc/msmtprc)
config msmtp: /etc/msmtp
# Set default values for all accounts
defaults
port 587
tls off
account smtp
host mail.vps1.nl
from mail@vps1.nl
auth off
# Set a default account
account default : smtp
# Aliases file
aliases /etc/aliases
Iemand een idee wat het zou kunnen zijn?
Op vps2 draait Postfix.
Als er web formulier wordt ingevuld wordt deze mbv msmtp doorgestuurd naar vps1.
Sinds enige tijd werkt het niet meer. Naar wat debuggen krijg ik het volgende:
echo "Test email using msmtp" | msmtp -v mail@vps1.nl
loaded system configuration file /etc/msmtprc
ignoring user configuration file /root/.msmtprc: No such file or directory
falling back to default account
using account default from /etc/msmtprc
host = ip.vps1.mail.server
port = 587
source ip = (not set)
proxy host = (not set)
proxy port = 0
timeout = off
protocol = smtp
domain = localhost
auth = none
user = (not set)
password = (not set)
passwordeval = (not set)
ntlmdomain = (not set)
tls = off
tls_starttls = on
tls_trust_file = system
tls_crl_file = (not set)
tls_fingerprint = (not set)
tls_key_file = (not set)
tls_cert_file = (not set)
tls_certcheck = on
tls_min_dh_prime_bits = (not set)
tls_priorities = (not set)
auto_from = off
maildomain = (not set)
from = main@domain.nl
add_missing_from_header = on
add_missing_date_header = on
remove_bcc_headers = on
dsn_notify = (not set)
dsn_return = (not set)
logfile = (not set)
logfile_time_format = (not set)
syslog = (not set)
aliases = /etc/aliases
reading recipients from the command line
<-- 220 mail.vps1.nl ESMTP Postfix (Debian/GNU)
--> EHLO localhost
<-- 250-mail.vps1.nl
<-- 250-PIPELINING
<-- 250-SIZE 82428800
<-- 250-ETRN
<-- 250-STARTTLS
<-- 250-ENHANCEDSTATUSCODES
<-- 250-8BITMIME
<-- 250-DSN
<-- 250 SMTPUTF8
--> MAIL FROM:<mail@vps2.nl>
--> RCPT TO:<mail@vps1.nl>
--> DATA
<-- 530 5.7.0 Must issue a STARTTLS command first
msmtp: envelope from address mail@vps2.nl not accepted by the server
msmtp: server message: 530 5.7.0 Must issue a STARTTLS command first
msmtp: could not send mail (account default from /etc/msmtprc)
config msmtp: /etc/msmtp
# Set default values for all accounts
defaults
port 587
tls off
account smtp
host mail.vps1.nl
from mail@vps1.nl
auth off
# Set a default account
account default : smtp
# Aliases file
aliases /etc/aliases
Iemand een idee wat het zou kunnen zijn?