Recommended to be in the file, good Linux practice. Doesn't have to be in before.
Manually wait the mail scanner file in sysconfig. Check it for any character errors. -- Jeremy McSpadden Flux Labs | Endless Solutions Cell : 850-890-2543 | Fax : 850-254-2955 On Jan 17, 2013, at 2:16 PM, "Anis Jendoubi" <[email protected]<mailto:[email protected]>> wrote: unfortunatly same error as my last post.... found out that even though the "hostname" and "hostname -f" were giving the same value, the /etc/hosts file didn't have a hard coded hostname with its IP, does that have to be input before running your script? I added the line to the host file but that didn't help either, MailScanner still giving the same errors... any idea? Thanks, Anis On 17 January 2013 21:03, Jeremy McSpadden <[email protected]<mailto:[email protected]>> wrote: sed -i 's:EXIM:#EXIM:' /etc/sysconfig/MailScanner echo EXIM=/usr/sbin/exim >> /etc/sysconfig/MailScanner echo EXIMINCF=/etc/exim/exim.conf >> /etc/sysconfig/MailScanner echo EXIMSENDCF=/etc/exim/exim_out.conf >> /etc/sysconfig/MailScanner Chould have fixed the MTA issue. .. running it to many times may void out the other . (I'm not that good with sed) grep MTA /etc/MailScanner/MailScanner.conf == MTA = exim grep MTA /etc/sysconfig/MailScanner == MTA=`$CMD -e "print MailScanner::Config::QuickPeek('$MSCONF','MTA')"` -- Jeremy McSpadden Flux Labs, Inc | http://www.fluxlabs.net | Endless Solutions Office : 850-250-5590x101 | Cell : 850-890-2543 | Fax : 850-254-2955 On Jan 17, 2013, at 1:59 PM, Anis Jendoubi <[email protected]<mailto:[email protected]>> wrote: The portion of the script ran, to be sure I ran the lines again with no errors, when trying to start MailScanner it dump the following errors (check at the bottom where it says "invalid MTA", I checked also and made sure that the command "hostname" and "hostname -f" gave me smtp.domain.local -------------------------------------------------------- [root@smtp ~]# service MailScanner start DBD::Pg::st execute failed: ERROR: relation "quickpeek" does not exist LINE 1: SELECT value FROM quickpeek WHERE external = $1 AND (hostnam... ^ [for Statement "SELECT value FROM quickpeek WHERE external = ? AND (hostname = ? OR hostname='default') LIMIT 1" with ParamValues: 1='mta', 2='smtp.domain.local'] at /usr/lib/MailScanner/MailScanner/ConfigSQL.pm line 134. DBD::Pg::st execute failed: ERROR: relation "quickpeek" does not exist LINE 1: SELECT value FROM quickpeek WHERE external = $1 AND (hostnam... ^ [for Statement "SELECT value FROM quickpeek WHERE external = ? AND (hostname = ? OR hostname='default') LIMIT 1" with ParamValues: 1='mta', 2='smtp.domain.local'] at /usr/lib/MailScanner/MailScanner/ConfigSQL.pm line 134. DBD::Pg::st execute failed: ERROR: relation "quickpeek" does not exist LINE 1: SELECT value FROM quickpeek WHERE external = $1 AND (hostnam... ^ [for Statement "SELECT value FROM quickpeek WHERE external = ? AND (hostname = ? OR hostname='default') LIMIT 1" with ParamValues: 1='incomingworkdir', 2='smtp.domain.local'] at /usr/lib/MailScanner/MailScanner/ConfigSQL.pm line 134. DBD::Pg::st execute failed: ERROR: relation "quickpeek" does not exist LINE 1: SELECT value FROM quickpeek WHERE external = $1 AND (hostnam... ^ [for Statement "SELECT value FROM quickpeek WHERE external = ? AND (hostname = ? OR hostname='default') LIMIT 1" with ParamValues: 1='incomingworkdir', 2='smtp.domain.local'] at /usr/lib/MailScanner/MailScanner/ConfigSQL.pm line 134. DBD::Pg::st execute failed: ERROR: relation "quickpeek" does not exist LINE 1: SELECT value FROM quickpeek WHERE external = $1 AND (hostnam... ^ [for Statement "SELECT value FROM quickpeek WHERE external = ? AND (hostname = ? OR hostname='default') LIMIT 1" with ParamValues: 1='incomingqueuedir', 2='smtp.domain.local'] at /usr/lib/MailScanner/MailScanner/ConfigSQL.pm line 134. DBD::Pg::st execute failed: ERROR: relation "quickpeek" does not exist LINE 1: SELECT value FROM quickpeek WHERE external = $1 AND (hostnam... ^ [for Statement "SELECT value FROM quickpeek WHERE external = ? AND (hostname = ? OR hostname='default') LIMIT 1" with ParamValues: 1='incomingqueuedir', 2='smtp.domain.local'] at /usr/lib/MailScanner/MailScanner/ConfigSQL.pm line 134. DBD::Pg::st execute failed: ERROR: relation "quickpeek" does not exist LINE 1: SELECT value FROM quickpeek WHERE external = $1 AND (hostnam... ^ [for Statement "SELECT value FROM quickpeek WHERE external = ? AND (hostname = ? OR hostname='default') LIMIT 1" with ParamValues: 1='quarantinedir', 2='smtp.domain.local'] at /usr/lib/MailScanner/MailScanner/ConfigSQL.pm line 134. DBD::Pg::st execute failed: ERROR: relation "quickpeek" does not exist LINE 1: SELECT value FROM quickpeek WHERE external = $1 AND (hostnam... ^ [for Statement "SELECT value FROM quickpeek WHERE external = ? AND (hostname = ? OR hostname='default') LIMIT 1" with ParamValues: 1='quarantinedir', 2='smtp.domain.local'] at /usr/lib/MailScanner/MailScanner/ConfigSQL.pm line 134. DBD::Pg::st execute failed: ERROR: relation "quickpeek" does not exist LINE 1: SELECT value FROM quickpeek WHERE external = $1 AND (hostnam... ^ [for Statement "SELECT value FROM quickpeek WHERE external = ? AND (hostname = ? OR hostname='default') LIMIT 1" with ParamValues: 1='runasuser', 2='smtp.domain.local'] at /usr/lib/MailScanner/MailScanner/ConfigSQL.pm line 134. DBD::Pg::st execute failed: ERROR: relation "quickpeek" does not exist LINE 1: SELECT value FROM quickpeek WHERE external = $1 AND (hostnam... ^ [for Statement "SELECT value FROM quickpeek WHERE external = ? AND (hostname = ? OR hostname='default') LIMIT 1" with ParamValues: 1='runasuser', 2='smtp.domain.local'] at /usr/lib/MailScanner/MailScanner/ConfigSQL.pm line 134. /etc/init.d/MailScanner: line 84: [: =: unary operator expected Starting MailScanner daemons: incoming : /etc/init.d/MailScanner: line 103: [: =: unary operator expected /etc/init.d/MailScanner: line 115: [: =: unary operator expected /etc/init.d/MailScanner: line 125: [: =: unary operator expected /etc/init.d/MailScanner: line 145: [: =: unary operator expected [FAILED] Invalid MTA in /etc/sysconfig/MailScanner outgoing : /etc/init.d/MailScanner: line 164: [: =: unary operator expected /etc/init.d/MailScanner: line 174: [: =: unary operator expected /etc/init.d/MailScanner: line 184: [: =: unary operator expected /etc/init.d/MailScanner: line 189: [: =: unary operator expected [FAILED] Invalid MTA in /etc/sysconfig/MailScanner MailScanner: /etc/init.d/MailScanner: line 232: [: =: unary operator expected [ OK ] -------------------------------------------------------- On 17 January 2013 20:50, Jeremy McSpadden <[email protected]<mailto:[email protected]>> wrote: sed -i 's:Custom Functions Dir = /usr/share/MailScanner/MailScanner/CustomFunctions:Custom Functions Dir = /usr/lib/MailScanner/MailScanner/CustomFunctions:' /etc/MailScanner/MailScanner.conf _______________________________________________ Keep Baruwa FREE - http://pledgie.com/campaigns/12056 _______________________________________________ Keep Baruwa FREE - http://pledgie.com/campaigns/12056 _______________________________________________ Keep Baruwa FREE - http://pledgie.com/campaigns/12056
_______________________________________________ Keep Baruwa FREE - http://pledgie.com/campaigns/12056

