Discussion:
[Mailwatch-users] Mailscanner Mailwatch and Postfix how to using FreeBSD
Lyndon Labuschagne
2008-05-15 09:30:24 UTC
Permalink
Hello All

I have seen a few people ask over the last year or to about FreeBSD
specifics.
I have installed Mailwatch a number of times on FreeBSD and decided to
put a how-to together.
The How-To is split into 2 parts Install and Configuration

here are the links maybe it will help someone in the future if they
search the lists.
http://joe-ma-how-to.blogspot.com/2008/05/freebsd-postfix-mailscanner-and.html
and
http://joe-ma-how-to.blogspot.com/2008/05/configuring-freebsd-postfix-mailscanner.html

Thanks
Johan Hendriks
2008-05-15 11:30:50 UTC
Permalink
Hello well it is a nice howto but the following is unnecessary



clamav-freshclam
Freshclam will check to see if there are new virus pattern updates and
download them on an hourly or daily basis. in the configuration How-To I
will show you what to edit.
vi clamav-freshclam
and change
: ${clamav_freshclam_enable="NO"}
to
: ${clamav_freshclam_enable="YES"}

then add clamav_freshclam_enable="YES" to /etc/rc.conf



You don't need (want) to edit the files in /usr/local/etc/rc.d just put
the line in /etc/rc.conf is enough!



Regards,

Johan Hendriks









________________________________

Van: mailwatch-users-***@lists.sourceforge.net
[mailto:mailwatch-users-***@lists.sourceforge.net] Namens Lyndon
Labuschagne
Verzonden: donderdag 15 mei 2008 11:30
Aan: mailwatch-***@lists.sourceforge.net
Onderwerp: [Mailwatch-users] Mailscanner Mailwatch and Postfix how to
usingFreeBSD



Hello All

I have seen a few people ask over the last year or to about FreeBSD
specifics.
I have installed Mailwatch a number of times on FreeBSD and decided to
put a how-to together.
The How-To is split into 2 parts Install and Configuration

here are the links maybe it will help someone in the future if they
search the lists.
http://joe-ma-how-to.blogspot.com/2008/05/freebsd-postfix-mailscanner-an
d.html
and
http://joe-ma-how-to.blogspot.com/2008/05/configuring-freebsd-postfix-ma
ilscanner.html

Thanks
Lyndon Labuschagne
2008-05-15 11:40:52 UTC
Permalink
thanks for that info although I added that as on the odd occasion i
have had to add it to the startup script in rc.d as well as rc.conf
not that I am sure why that seems to happen.
Post by Johan Hendriks
Hello well it is a nice howto but the following is unnecessary
clamav-freshclam
Freshclam will check to see if there are new virus pattern updates
and download them on an hourly or daily basis. in the configuration
How-To I will show you what to edit.
vi clamav-freshclam
and change
: ${clamav_freshclam_enable="NO"}
to
: ${clamav_freshclam_enable="YES"}
then add clamav_freshclam_enable="YES" to /etc/rc.conf
You don’t need (want) to edit the files in /usr/local/etc/rc.d just
put the line in /etc/rc.conf is enough!
Regards,
Johan Hendriks
] Namens Lyndon Labuschagne
Verzonden: donderdag 15 mei 2008 11:30
Onderwerp: [Mailwatch-users] Mailscanner Mailwatch and Postfix how
to usingFreeBSD
Hello All
I have seen a few people ask over the last year or to about FreeBSD
specifics.
I have installed Mailwatch a number of times on FreeBSD and decided
to put a how-to together.
The How-To is split into 2 parts Install and Configuration
here are the links maybe it will help someone in the future if they
search the lists.
http://joe-ma-how-to.blogspot.com/2008/05/freebsd-postfix-mailscanner-and.html
and
http://joe-ma-how-to.blogspot.com/2008/05/configuring-freebsd-postfix-mailscanner.html
Thanks
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________
Mailwatch-users mailing list
https://lists.sourceforge.net/lists/listinfo/mailwatch-users
_________________________________
Kind Regards

Lyndon Labuschagne
Network Manager
E-mail: ***@mexcom.co.za
Tel: +27 11 801 4000
Fax: +27 11 791 7987
Website: http://www.mexcom.co.za
Finant 24 (Pty) Ltd t/a Mexcom



"The information contained in this communication is confidential and
may be legally privileged. It is intended solely for the use of the
individual or entity to whom it is addressed and others authorized to
receive it. If you are not the intended recipient you are hereby
notified that any disclosure, copying, distribution or taking action
in reliance of the contents of this information is strictly prohibited
and may be unlawful. The company is neither liable for the information
contained in this communication, any delay in its receipt or that the
mail is virus-free."
Johan Hendriks
2008-05-15 11:52:21 UTC
Permalink
Some other pointers.



Make sure sendmail will not start by adding the following to the rc.conf
file



postfix_enable="YES"

sendmail_enable="NO"

sendmail_submit_enable="NO"

sendmail_outbound_enable="NO"

sendmail_msp_queue_enable="NO"



also create a file /etc/periodic.conf containing the following



daily_clean_hoststat_enable="NO"

daily_status_mail_rejects_enable="NO"

daily_status_include_submit_mailq="NO"

daily_submit_queuerun="NO"



Now sendmail is disabled totally! Also the daily checks of the sendmail
queue and so on.



Next you say that freebsd will boot in the order of the rc.conf file.

This is not true.

Read man rcorder



Also you can better make use of apache22 and php5 because php4 is at the
end of it's lifetime.



One major error is this!!!!!!!!!!!!!!!!!!!!!!!!!!!



Would you like to activate Postfix in /etc/mail/mailer.conf [n]?
now you press n and enter, once again the install will continue



You need to give a y here or else the base sendmail executeables are
used by the system and not the postfix one



This is the mailer.conf file when entered n



#

# Execute the "real" sendmail program, named
/usr/libexec/sendmail/sendmail

#

sendmail /usr/libexec/sendmail/sendmail

send-mail /usr/libexec/sendmail/sendmail

mailq /usr/libexec/sendmail/sendmail

newaliases /usr/libexec/sendmail/sendmail

hoststat /usr/libexec/sendmail/sendmail

purgestat /usr/libexec/sendmail/sendmail



You see that the mailer is /usr/libexec <<<< this is the base system
also notice the remark Execute the "real" sendmail program, named
/usr/libexec/sendmail/sendmail



When entered y your mailer.conf file will look like



#

# Execute the Postfix sendmail program, named /usr/local/sbin/sendmail

#

sendmail /usr/local/sbin/sendmail

send-mail /usr/local/sbin/sendmail

mailq /usr/local/sbin/sendmail

newaliases /usr/local/sbin/sendmail



These are the postfix executeables (notice the remark Execute the
Postfix sendmail program, named /usr/local/sbin/sendmail)



Regards,

Johan Hendriks

Double L automatisering
Lyndon Labuschagne
2008-05-15 12:00:59 UTC
Permalink
Thanks again for the info I have never run into any issues but I will
keep this in mind
Post by Johan Hendriks
Some other pointers.
Make sure sendmail will not start by adding the following to the
rc.conf file
postfix_enable="YES"
sendmail_enable="NO"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"
also create a file /etc/periodic.conf containing the following
daily_clean_hoststat_enable="NO"
daily_status_mail_rejects_enable="NO"
daily_status_include_submit_mailq="NO"
daily_submit_queuerun="NO"
Now sendmail is disabled totally! Also the daily checks of the
sendmail queue and so on.
Next you say that freebsd will boot in the order of the rc.conf file.
This is not true.
Read man rcorder
Also you can better make use of apache22 and php5 because php4 is at
the end of it’s lifetime.
One major error is this!!!!!!!!!!!!!!!!!!!!!!!!!!!
Would you like to activate Postfix in /etc/mail/mailer.conf [n]?
now you press n and enter, once again the install will continue
You need to give a y here or else the base sendmail executeables are
used by the system and not the postfix one
This is the mailer.conf file when entered n
#
# Execute the "real" sendmail program, named /usr/libexec/sendmail/
sendmail
#
sendmail /usr/libexec/sendmail/sendmail
send-mail /usr/libexec/sendmail/sendmail
mailq /usr/libexec/sendmail/sendmail
newaliases /usr/libexec/sendmail/sendmail
hoststat /usr/libexec/sendmail/sendmail
purgestat /usr/libexec/sendmail/sendmail
You see that the mailer is /usr/libexec <<<< this is the base system
also notice the remark Execute the "real" sendmail program, named /
usr/libexec/sendmail/sendmail
When entered y your mailer.conf file will look like
#
# Execute the Postfix sendmail program, named /usr/local/sbin/sendmail
#
sendmail /usr/local/sbin/sendmail
send-mail /usr/local/sbin/sendmail
mailq /usr/local/sbin/sendmail
newaliases /usr/local/sbin/sendmail
These are the postfix executeables (notice the remark Execute the
Postfix sendmail program, named /usr/local/sbin/sendmail)
Regards,
Johan Hendriks
Double L automatisering
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________
Mailwatch-users mailing list
https://lists.sourceforge.net/lists/listinfo/mailwatch-users
_________________________________
Kind Regards

Lyndon Labuschagne
Network Manager
E-mail: ***@mexcom.co.za
Tel: +27 11 801 4000
Fax: +27 11 791 7987
Website: http://www.mexcom.co.za
Finant 24 (Pty) Ltd t/a Mexcom



"The information contained in this communication is confidential and
may be legally privileged. It is intended solely for the use of the
individual or entity to whom it is addressed and others authorized to
receive it. If you are not the intended recipient you are hereby
notified that any disclosure, copying, distribution or taking action
in reliance of the contents of this information is strictly prohibited
and may be unlawful. The company is neither liable for the information
contained in this communication, any delay in its receipt or that the
mail is virus-free."
Johan Hendriks
2008-05-15 11:58:58 UTC
Permalink
This is not a rant on your howto what so ever. !!



One more thing.

The default location of mysql is /var/db/mysql

On a default install of freebsd the /var partition is not that big, so
your /var can run out of space real soon.

The thing I always do is create a dir /usr/local/var/db and put the
following line in my /etc/rc.conf



mysql_dbdir="/usr/local/var/db/mysql"



Now the database location is on the /usr partition which is much bigger
on a default install of freebsd.



Regards

Johan Hendriks

Double L Automatisering
Lyndon Labuschagne
2008-05-15 12:06:22 UTC
Permalink
no problem its not taken as a rant.

I never do a default install and always setup my own partitions so I
never even contemplated the /var directory being small as you rightly
point out by using the auto option.

I will pop all these comments in the how to as soon as I get a chance
some of them will be footnotes as such
Post by Johan Hendriks
This is not a rant on your howto what so ever. !!
One more thing.
The default location of mysql is /var/db/mysql
On a default install of freebsd the /var partition is not that big,
so your /var can run out of space real soon.
The thing I always do is create a dir /usr/local/var/db and put the
following line in my /etc/rc.conf
mysql_dbdir=”/usr/local/var/db/mysql”
Now the database location is on the /usr partition which is much
bigger on a default install of freebsd.
Regards
Johan Hendriks
Double L Automatisering
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________
Mailwatch-users mailing list
https://lists.sourceforge.net/lists/listinfo/mailwatch-users
_________________________________
Kind Regards

Lyndon Labuschagne
Network Manager
E-mail: ***@mexcom.co.za
Tel: +27 11 801 4000
Fax: +27 11 791 7987
Website: http://www.mexcom.co.za
Finant 24 (Pty) Ltd t/a Mexcom



"The information contained in this communication is confidential and
may be legally privileged. It is intended solely for the use of the
individual or entity to whom it is addressed and others authorized to
receive it. If you are not the intended recipient you are hereby
notified that any disclosure, copying, distribution or taking action
in reliance of the contents of this information is strictly prohibited
and may be unlawful. The company is neither liable for the information
contained in this communication, any delay in its receipt or that the
mail is virus-free."

Loading...