Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
11-02-2004, 09:51 PM
|
#1
|
Member
Registered: Oct 2004
Location: Chicago, IL
Distribution: Fedora Core 2
Posts: 101
Rep:
|
qmail local attachment limit
Hi
I am running qmail + vpopmail + spamassasin + courierimap + clamd and everyhting is working great, but i noticed something strange lately.
I can send a message from an account on the server to a remote or external email adress and the size limit is 10MB just like what i have configured in the databytes file. But if i try to send a file over about 2 MB to another address on the domain (local) it never gets there and no boucebacks or logs indicating why. has anyone experiencing this yet? does it have to do with squirrelmail or qmail? i adjusted the max upload size in the php.ini to 5MB i have no problem uploading the attachment but if i send it lets say from user1@test.com to user2@test.com it never gets there if its over about 2 MB.
almost like there is a separate local and remote attachment size but i dont know where to adjust the local attachment limit
any ideas?
Lenny
|
|
|
11-03-2004, 09:06 AM
|
#3
|
Member
Registered: Oct 2004
Location: Chicago, IL
Distribution: Fedora Core 2
Posts: 101
Original Poster
Rep:
|
hey thanks for the reply,
my max uploads are set to 5MB
my post_max_size is set to 8MB
my memory limit is set to 8MB
and i read the info from the 2nd link and i checked the php.conf file and it didnt have the LimitRequestBody variable to so i added it with 20524288 restarted apache but it still doesnt work..
the only thing i cant find is a config file for imap or courier imap....i installed qmail and everything via qmailrocks.org install
any ideas
lenny
|
|
|
11-03-2004, 09:33 AM
|
#4
|
Member
Registered: Oct 2004
Location: Chicago, IL
Distribution: Fedora Core 2
Posts: 101
Original Poster
Rep:
|
i actually found out whats happening with the attachments...i ran top and noticed several instances of clamscan running and i looked in the tmp fodler for clamd and there were all the test i sent...i removed them all and rebooted the machine and now its back to normal but now i have to figure how to increase the attachment size i looked in the clam.conf file and didnt notice anything unlesss i missed it....are u familiar with clam antivirus
lenny
|
|
|
11-03-2004, 10:28 AM
|
#5
|
Member
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736
Rep:
|
Ah, I see... well, I know there is a timeout value you can give clamav to tell it how long to try scanning large attachments before it gives up and passes it on.
av_timeout = x
where x = the number of seconds to attempt scanning attachments before it quits and passes it on to qmail for delivery.
|
|
|
11-03-2004, 12:44 PM
|
#6
|
Member
Registered: Oct 2004
Location: Chicago, IL
Distribution: Fedora Core 2
Posts: 101
Original Poster
Rep:
|
oh great thanks....ill try it later...is that av_timeout = x value in the spamd.conf file or where is it exaclty?
i would look now but im not able to..
thanks
lenny
|
|
|
11-03-2004, 12:58 PM
|
#7
|
Member
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736
Rep:
|
/etc/clamd.conf (I think)
|
|
|
11-03-2004, 02:18 PM
|
#8
|
Member
Registered: Oct 2004
Location: Chicago, IL
Distribution: Fedora Core 2
Posts: 101
Original Poster
Rep:
|
cool thanks again..im going to try it later tonight..ill let u know if that fixes it...do you think it could be anything else in the clamd conf file or any other clamd config files?
thanks
lenny
|
|
|
11-03-2004, 06:59 PM
|
#9
|
Member
Registered: Oct 2004
Location: Chicago, IL
Distribution: Fedora Core 2
Posts: 101
Original Poster
Rep:
|
ok i checked the clamav.conf file and the following variable is set:
ReadTimeout 300
so its already set to 5 min im not sure if there is another settings to look for?
thanks
lenny
|
|
|
11-03-2004, 08:36 PM
|
#10
|
Member
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736
Rep:
|
hmmm... Well if it were me, I would start with the logs. Your description of the problem indicated that there was "nothing useful in the logs" which is simply not enough investigation. By sending yourself a few test messages to another local mailbox, you should be able to see where things are going. Since you're using squirrelmail, the place to check will be in the qmail-send logs to see where qmail is delivering the messages. If there is nothing in qmail-send, then it must be indicated in another log somewhere else. In my case, I have /var/log/maillog which is general logging for several services. There is also /var/log/clamav/clamd.log. I also have /var/spool/qmailscan/qmail-queue.log. Between one of these, there should be some evidence of a delivery of your message.
Once you figure out where the message has been already, you can figure out which process is holding up the show. Frankly, at this point, I have no idea what is wrong or why deliveries aren't happening. I invite other readers here to post their opinions too, because I have few other ideas.
|
|
|
11-03-2004, 11:06 PM
|
#11
|
Member
Registered: Oct 2004
Location: Chicago, IL
Distribution: Fedora Core 2
Posts: 101
Original Poster
Rep:
|
i looked in both log files u mentioned after i sent another 2 tests and they didnt indicate why they are in the tmp folder...i also did some research on qmail-scanner and found the file:
/var/spool/qmailscan/quarantine-attachments.txt
which had some config's that might help...i added the following
.mov 5242880 .mov extensions
they say if you put the following, those extensions will be rejected
.pif 0 pif extensions
so if a .pif is sent as an attachment it will get quarantined, so I added the file size above thinking if a file is send over 5MB it will be quarantined.
i ran /var/qmail/bin/qmail-scanner-queue.pl -g and restarted qmail but it still didnt send and was quarantined.
im still looking.....but not sure i think its either qmail-scanner or clamd or maybe qmail
thanks
lenny
|
|
|
11-04-2004, 01:22 AM
|
#12
|
Member
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736
Rep:
|
I think the option you want to give qmail-scanner is -z. I'm not sure what -g does, but I have been told that -z is supposed to be run daily and it flushes temp files and whatnot. So when you reconfigure qmail-scanner, they say you're supposed to run it with -z once.
|
|
|
11-04-2004, 12:58 PM
|
#13
|
Member
Registered: Oct 2004
Location: Chicago, IL
Distribution: Fedora Core 2
Posts: 101
Original Poster
Rep:
|
thanks for the info....so u think i should enter what i had in there .mov 5242880 .mov entensions and then run /var/qmail/bin/qmail-scanner-queue.pl -z and see what happens?
the only reason why i did -g cuz in teh /var/qmail/bin/qmail-scanner-queue.pl file on the very bottom it says make sure u run /var/qmail/bin/qmail-scanner-queue.pl -g after modifying this file so i did
thanks
lenny
|
|
|
11-04-2004, 02:18 PM
|
#14
|
Member
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736
Rep:
|
Here's one place where they say to run the command daily. I can't seem to find the post where Jason Haar said to run it daily, but I know I have seen it before.
http://www.mail-archive.com/qmail-sc.../msg05059.html
Yeah, I think just run them both and see if that helps any.
|
|
|
All times are GMT -5. The time now is 08:15 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|