Hi Anis, Where did you pull the updated script for CentOS 6 from? I have just tried curl -O https://raw.github.com/fluxlabs/scripting/master/baruwa/cent6/install_baruwa2.sh and the file appears to be the same as the one I downloaded 2 days ago (24505 bytes). The script I've downloaded doesn't ask for Baruwa username and displays the same errors as yours when starting up MailScanner.
I have the hostname line in /etc/hosts and both iptables and selinux disabled. Thanks, Norman On 17/01/2013 20:54, Anis Jendoubi wrote: > OK... Got it to work, this is what I've done and FYI: > I have installed Centos 6.3 64bit, disabled iptables and selinux and > put the hostname with its IP hard coded in the file /etc/hosts as > the _*example*_ below: > > ---------------------------- > 192.168.1.60 smtp.domain.local smtp > --------------------------- > > and then I ran your script file... and badaboom, I can login without > issue.... > Oh! BTW: I can confirm that the last pulled script few minutes ago > does ask for the baruwa admin username and password as well as to > fill all the other details (email, name and surname). > > Good Job Jeremy for this script... > Good Job Andrew for this lovely app! > > I will be testing this in the next couple of weeks (now busy with > other things) and will be posting some helpful feature requests (if > there will be any) as well as issues that I can find (hopefully I > find nothing ;) ) > > Time for me to go to bed... > Cheers, > Anis > > On 17 January 2013 21:25, Jeremy McSpadden <[email protected] > <mailto:[email protected]>> wrote: > > 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 > >
_______________________________________________ Keep Baruwa FREE - http://pledgie.com/campaigns/12056

