Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sendmail OQueueDirectory

Status
Not open for further replies.

Robert800

Programmer
Apr 6, 2006
52
SE
Hello,
when i do the command:
sendmail -bp -OQueueDirectory=/var/spool/mqueue.in|grep directory

in my sendmail config i get the following message:

l5F6nPC1002746readqf: cannot open ./dfl5F6nPC1002746: No such file or directory
l4VDwbXb015745readqf: cannot open ./dfl4VDwbXb015745: No such file or directory
l5I0M9fQ004129readqf: cannot open ./dfl5I0M9fQ004129: No such file or directory
l4VKYSpt000962readqf: cannot open ./dfl4VKYSpt000962: No such file or directory
l5568kZW031415readqf: cannot open ./dfl5568kZW031415: No such file or directory
l5CJrrPp020444readqf: cannot open ./dfl5CJrrPp020444: No such file or directory
l5LBjriq010082readqf: cannot open ./dfl5LBjriq010082: No such file or directory
l5KCClSF002276readqf: cannot open ./dfl5KCClSF002276: No such file or directory
l5E2Vjtp029746readqf: cannot open ./dfl5E2Vjtp029746: No such file or directory
l5NF0iIe017311readqf: cannot open ./dfl5NF0iIe017311: No such file or directory
l5ACiVSu016338readqf: cannot open ./dfl5ACiVSu016338: No such file or directory
l5DDrDDa018721readqf: cannot open ./dfl5DDrDDa018721: No such file or directory
l5MDm5tp013232readqf: cannot open ./dfl5MDm5tp013232: No such file or directory
l554YFRA020564readqf: cannot open ./dfl554YFRA020564: No such file or directory
l52F9JBx015607readqf: cannot open ./dfl52F9JBx015607: No such file or directory
l558dmc5026953readqf: cannot open ./dfl558dmc5026953: No such file or directory
l5IJecbE028897readqf: cannot open ./dfl5IJecbE028897: No such file or directory
l5J6kQ0c026992readqf: cannot open ./dfl5J6kQ0c026992: No such file or directory
l5JHGMWp003926readqf: cannot open ./dfl5JHGMWp003926: No such file or directory
l5ILPkZs007544readqf: cannot open ./dfl5ILPkZs007544: No such file or directory

How can that be fixed so there are no files that dont "exists" ? Any config in sendmail that takes care of them?

Can i bash delete these files? but iam not sure how!

thanks
 
i found this script in sendmail book.

# remove df files with no corresponding qf files
cd /var/spool/mqueue.in/
for df in df*
do
qf=`echo $df | sed 's/d/q/'`
if [ -r $df -a ! -f $qf ]
then
echo -n ""
rm -f $df `echo $df | sed 's/d/D/'`
fi
done

But i havent tried it so iam not sure if it works, as its important mail server. Does anyone have used this before?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top