LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 11-02-2004, 09:51 PM   #1
lsimon4180
Member
 
Registered: Oct 2004
Location: Chicago, IL
Distribution: Fedora Core 2
Posts: 101

Rep: Reputation: 15
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
 
Old 11-03-2004, 07:45 AM   #2
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
Hey man! Glad to see you've got your system mostly working.

About the size limit. There are a couple of other variables you have to change besides just max uploads....

http://www.squirrelmail.org/wiki/en_...AttachmentSize

http://www.redhat.com/archives/redha.../msg00541.html
 
Old 11-03-2004, 09:06 AM   #3
lsimon4180
Member
 
Registered: Oct 2004
Location: Chicago, IL
Distribution: Fedora Core 2
Posts: 101

Original Poster
Rep: Reputation: 15
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
 
Old 11-03-2004, 09:33 AM   #4
lsimon4180
Member
 
Registered: Oct 2004
Location: Chicago, IL
Distribution: Fedora Core 2
Posts: 101

Original Poster
Rep: Reputation: 15
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
 
Old 11-03-2004, 10:28 AM   #5
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
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.
 
Old 11-03-2004, 12:44 PM   #6
lsimon4180
Member
 
Registered: Oct 2004
Location: Chicago, IL
Distribution: Fedora Core 2
Posts: 101

Original Poster
Rep: Reputation: 15
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
 
Old 11-03-2004, 12:58 PM   #7
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
/etc/clamd.conf (I think)
 
Old 11-03-2004, 02:18 PM   #8
lsimon4180
Member
 
Registered: Oct 2004
Location: Chicago, IL
Distribution: Fedora Core 2
Posts: 101

Original Poster
Rep: Reputation: 15
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
 
Old 11-03-2004, 06:59 PM   #9
lsimon4180
Member
 
Registered: Oct 2004
Location: Chicago, IL
Distribution: Fedora Core 2
Posts: 101

Original Poster
Rep: Reputation: 15
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
 
Old 11-03-2004, 08:36 PM   #10
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
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.
 
Old 11-03-2004, 11:06 PM   #11
lsimon4180
Member
 
Registered: Oct 2004
Location: Chicago, IL
Distribution: Fedora Core 2
Posts: 101

Original Poster
Rep: Reputation: 15
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
 
Old 11-04-2004, 01:22 AM   #12
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
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.
 
Old 11-04-2004, 12:58 PM   #13
lsimon4180
Member
 
Registered: Oct 2004
Location: Chicago, IL
Distribution: Fedora Core 2
Posts: 101

Original Poster
Rep: Reputation: 15
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
 
Old 11-04-2004, 02:18 PM   #14
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
QMaiL quota limit ysg08 Linux - Networking 1 06-11-2004 03:01 PM
evolution file attachment size limit? abhorrent Linux - Software 2 05-06-2004 04:35 AM
account and email attachment limit red_phoenix Debian 2 09-16-2003 03:22 AM
qmail attachment size? IceNineJon Linux - Software 3 08-25-2002 02:55 PM
How to prepare a local mail with attachment J_Szucs Linux - Software 2 07-07-2002 05:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration