Hi Eric, I restarted the server, now its refusing connections on port 25. So no incoming email.
I reverted to : QMAILDUID=`id -u vpopmail` NOFILESGID=`id -g vpopmail` MAXSMTPD=`cat /var/qmail/control/concurrencyincoming` SMTPD="/var/qmail/bin/qmail-smtpd" TCP_CDB="/etc/tcprules.d/tcp.smtp.cdb" HOSTNAME=`hostname` VCHKPW="/home/vpopmail/bin/vchkpw" REQUIRE_AUTH=0 export FORCETLS=0 export SMTPAUTH="+cram" exec /usr/bin/softlimit -m 104000000 \ /usr/bin/tcpserver -v -R -H -l $HOSTNAME -x $TCP_CDB -c "$MAXSMTPD" \ -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp \ $SMTPD $VCHKPW /bin/true 2>&1 tcp.smtp 127.:allow,RELAYCLIENT="",BADMIMETYPE="",BADLOADERTYPE="M",CHKUSER_RCPT LIMIT="50",CHKUSER_WRONGRCPTLIMIT="10",NOP0FCHECK="1",QMAILQUEUE="/var/ qmail/bin/simscan",DKQUEUE="/var/qmail/bin/qmail- queue.orig",DKVERIFY="DEGIJKfh",DKSIGN="/var/qmail/control/domainkeys/% /private" telnet xxxxx.xxx.xxx 25 Trying xxx.yyy.zzz.ccc ...telnet: Unable to connect to remote host: Connection refused Could you please help? I also restarted after I reverted the changes. Kind regards, Dieter -----Original Message----- Date: Sun, 24 Jan 2021 10:17:49 -0700 Subject: Re: [qmailtoaster] Error when trying to send on submission port To: [email protected] Reply-to: [email protected] From: Eric Broch <[email protected]> Are there two submission daemons running? Restart server. On 1/24/2021 9:10 AM, [email protected] wrote: > You need to have Your /var/qmail/supervise/smtp/run (port 25) as > below > > #!/bin/sh > QMAILDUID=`id -u vpopmail` > NOFILESGID=`id -g vpopmail` > MAXSMTPD=`cat /var/qmail/control/concurrencyincoming` > SPAMDYKE="/usr/bin/spamdyke" > SPAMDYKE_CONF="/etc/spamdyke/spamdyke.conf" > SMTPD="/var/qmail/bin/qmail-smtpd" > TCP_CDB="/etc/tcprules.d/tcp.smtp.cdb" > HOSTNAME=`hostname` > VCHKPW="/home/vpopmail/bin/vchkpw" > export SMTPAUTH="-" > > exec /usr/bin/softlimit -m 128000000 \ > /usr/bin/tcpserver -v -R -H -l $HOSTNAME -x $TCP_CDB -c > "$MAXSMTPD" \ > -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp \ > $SPAMDYKE --config-file $SPAMDYKE_CONF \ > $SMTPD $VCHKPW /bin/true 2>&1 > > > > Then have the change (copy the lines from Eric' mail) into the > /var/qmail/supervise/submission/run (port 587) > > > and lastly here is my /var/run/supervise/smtps/run for port 465 > > #!/bin/sh > QMAILDUID=`id -u vpopmail` > NOFILESGID=`id -g vpopmail` > MAXSMTPD=`cat /var/qmail/control/concurrencyincoming` > SMTPD="/var/qmail/bin/qmail-smtpd" > TCP_CDB="/etc/tcprules.d/tcp.smtp.cdb" > HOSTNAME=`hostname` > VCHKPW="/home/vpopmail/bin/vchkpw" > export SMTPS=1 > export FORCETLS=0 > export SMTPAUTH="!+cram" > > exec /usr/bin/softlimit -m 128000000 \ > /usr/bin/tcpserver -v -R -H -l $HOSTNAME -x $TCP_CDB -c > "$MAXSMTPD" \ > -u "$QMAILDUID" -g "$NOFILESGID" 0 465 \ > $SMTPD $VCHKPW /bin/true 2>&1 > > I may say all 3 run files are default settings from Erics install > script - only change I may recall is the softlimit that may have > been > increased > > My clients (mostly TB) are using ssl/tls - encrypted (name/passwd) > settings and are only using 465 or 587 to submit mails > port 25 is only for server to server delivery 😏 > > Hope this may help > > > Regards > > Finn > > PS I'm on Centos8 and Qmail for same - perfect > > > Den 24-01-2021 kl. 07:31 skrev Dieter Febel: > > Hi Eric, > > > > I changed the file to what you recommended, but I am still getting > > the same error. I have authentication turned on in the email > > client, > > and no encryption. > > The reported error was "MAIL FROM command failed: Authorization > > required (#5.7.1)". > > > > #!/bin/sh > > QMAILDUID=`id -u vpopmail` > > NOFILESGID=`id -g vpopmail` > > MAXSMTPD=`cat /var/qmail/control/concurrencyincoming` > > SMTPD="/var/qmail/bin/qmail-smtpd" > > TCP_CDB="/etc/tcprules.d/tcp.smtp.cdb" > > HOSTNAME=`hostname` > > VCHKPW="/home/vpopmail/bin/vchkpw" > > export SMTPAUTH="!" > > exec /usr/bin/softlimit -m 128000000\ > > /usr/bin/tcpserver -v -R -H -l $HOSTNAME -x $TCP_CDB -c > > "$MAXSMTPD" \ > > -u "$QMAILDUID" -g "$NOFILESGID" 0 587 \ > > $SMTPD $VCHKPW /bin/true 2>&1 > > > > > > > > > > > > -----Original Message----- > > > > *Date*: Sat, 23 Jan 2021 10:17:11 -0700 > > *Subject*: Re: [qmailtoaster] Error when trying to send on > > submission > > port > > *To*: [email protected] > > <mailto:[email protected]> > > Reply-to: [email protected] > > *From*: Eric Broch <[email protected] > > <mailto:eric%20broch%20%[email protected]%3e>> > > > > #!/bin/sh > > QMAILDUID=`id -u vpopmail` > > NOFILESGID=`id -g vpopmail` > > MAXSMTPD=`cat /var/qmail/control/concurrencyincoming` > > SMTPD="/var/qmail/bin/qmail-smtpd" > > TCP_CDB="/etc/tcprules.d/tcp.smtp.cdb" > > HOSTNAME=`hostname` > > VCHKPW="/home/vpopmail/bin/vchkpw" > > export SMTPAUTH="!" > > > > exec /usr/bin/softlimit -m 128000000 \ > > /usr/bin/tcpserver -v -R -H -l $HOSTNAME -x $TCP_CDB -c > > "$MAXSMTPD" \ > > -u "$QMAILDUID" -g "$NOFILESGID" 0 587 \ > > $SMTPD $VCHKPW /bin/true 2>&1 > > > > On 1/23/2021 10:09 AM, Dieter Febel wrote: > > > Hi list, > > > > > > The server only allows sending of email on port 465 or port 25. > > > When > > > I change to 587 with plain or with encryption I get: > > > > > > Port 587 plain: The reported error was "MAIL FROM command > > > failed: > > > Authorization required (#5.7.1)". (Authentication is enabled in > > > the > > > mail client) > > > > > > Here is my /var/qmail/supervise/smtp/run > > > QMAILDUID=`id -u vpopmail` > > > NOFILESGID=`id -g vpopmail` > > > MAXSMTPD=`cat /var/qmail/control/concurrencyincoming` > > > SMTPD="/var/qmail/bin/qmail-smtpd" > > > TCP_CDB="/etc/tcprules.d/tcp.smtp.cdb" > > > HOSTNAME=`hostname` > > > VCHKPW="/home/vpopmail/bin/vchkpw" > > > REQUIRE_AUTH=0 > > > export FORCETLS=0 > > > export SMTPAUTH="+cram" > > > exec /usr/bin/softlimit -m 104000000 \ > > > /usr/bin/tcpserver -v -R -H -l $HOSTNAME -x $TCP_CDB -c > > > "$MAXSMTPD" \ > > > -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp \ > > > $SMTPD $VCHKPW /bin/true 2>&1 > > > > > > And my tcp.smtp > > > 127.:allow,RELAYCLIENT="",BADMIMETYPE="",BADLOADERTYPE="M",CHKUSE > > > R_RCPTLIMIT="50",CHKUSER_WRONGRCPTLIMIT="10",NOP0FCHECK="1",QMAIL > > > QUEUE="/var/qmail/bin/simscan",DKQUEUE="/var/qmail/bin/qmail- > > > queue.orig",DKVERIFY="DEGIJKfh",DKSIGN="/var/qmail/control/domain > > > keys/%/private" > > > > > > > > > Any ideas? > > > > > > Kind regards, > > > > > > Dieter > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > m > For additional commands, e-mail: qmailtoaster-list-help@qmailtoaster. > com > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] m
