diff -Nur smeserver-fetchmail-1.4.old8630/root/etc/e-smith/templates/etc/fetchmail/90fetchmail smeserver-fetchmail-1.4.bz8630/root/etc/e-smith/templates/etc/fetchmail/90fetchmail --- smeserver-fetchmail-1.4.old8630/root/etc/e-smith/templates/etc/fetchmail/90fetchmail 2015-01-12 18:13:18.451918895 +0100 +++ smeserver-fetchmail-1.4.bz8630/root/etc/e-smith/templates/etc/fetchmail/90fetchmail 2015-01-12 18:22:39.057766042 +0100 @@ -312,9 +312,11 @@ my $ssl = ''; if ( $mtype =~ s/^S// ) { $ssl = 'options ssl' } - my $mdbg='-d0 --silent --syslog'; - if($Debug eq "YES") { $mdbg='-d0 --verbose --syslog'; } - + #We retrieve the $qmail{MaxMessageSize} to fix the max limit where emails won't be downloaded + my $size = $db->get_prop('qmail','MaxMessageSize') || '0'; + my $mdbg='-l' . $size . ' -d0 --silent --syslog'; + if($Debug eq "YES") { $mdbg='-l' . $size . ' -d0 --verbose --syslog'; } + my $staticvalue = "/usr/bin/fetchmail $mdbg --fetchmailrc - <