• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Strange e-mail accounts Problem

V

varet

Guest
Hi ppl,

I have a strange problem, when i create an e-mail account with mailbox, sometimes (half of them) missing a line on .qmail file!
This line is sending mails to null! (and i have missing mails)
The missing line is:
| /usr/bin/deliverquota ./Maildir

I have created the following script in order to fix the problem!
Can someone help me with this issue?


Script:
#!/bin/sh

grep=/bin/grep


find /var/qmail/mailnames/ | grep /.qmail > result
sed '/.qmail-default/d' result >result2
echo > semifinalresult
for sitestoexport in `cat result2`
do
echo `grep deliverquota $sitestoexport` $sitestoexport >> semifinalresult
done

sed '/deliverquota/d' semifinalresult > finalresult

maildomainlist=`cat finalresult | awk 'FS="/" { print $6 "@" $5 }'`

for maildirs in $maildomainlist
do
mailbox=`/usr/local/psa/bin/mail -i $maildirs | grep Mailbox`
echo $mailbox
echo "Fixed $maildirs"
echo Fixed $maildirs >> fixed
/usr/local/psa/bin/mail -u $maildirs -mailbox false
/usr/local/psa/bin/mail -u $maildirs -mailbox true
 
Hi ppl,

I have a strange problem, when i create an e-mail account with mailbox, sometimes (half of them) missing a line on .qmail file!
This line is sending mails to null! (and i have missing mails)
The missing line is:


I have created the following script in order to fix the problem!
Can someone help me with this issue?


Script:


Noone has similar problems!.... Maybe i am the only one :)
 
Noone has similar problems!.... Maybe i am the only one :)


There is also a problem.
I think most likely due to simple passwords.

I have a solution, same as you (to periodically search).

The exact reasons you can not find?
 
Back
Top