Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Thread Tools Display Modes
  #1   (View Single Post)  
Old 4th March 2014
deadeyes deadeyes is offline
Port Guard
Join Date: Jun 2008
Posts: 19
Default Sendmail + mailscanner


I'm currently setting up a mailserver with Sendmail and Dovecot.

Sendmail is using SASL for authentication so I had to use the ports version.
Then I used the script that is in the ports to switch to this as my "MTA".
SASL authentication is working.

Now I want anti spam and AV. Therefor I installed MailScanner.
I was told MailScanner starts sendmail. Is it actually starting the daemon? Or is it invoking it to send mail? Is this part of the rc script(it doesn't seem like it)?
Also the configuration states the incoming mail queue is mqueue.in. I'm not sure what I should put this to.
This directory isn't existing yet by default. So I guess sendmail won't use it.
The email get delivered but they aren't checked.

I assume I need sendmail to use another queue? What variables should I edit in /etc/rc.conf? MailScanner seems to start but sendmail doesn't unless I do it manually. Are there any specific settings that I should do in /etc/mail/domain.mc?

Thanks in advance!
Reply With Quote
  #2   (View Single Post)  
Old 5th March 2014
J65nko J65nko is offline
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,503

The problem with most howto's and guide floating around the Net, is that many of them are outdated. And they hardly ever explain how it all works.

If Mailscanner is scanning incoming mails, it has to do it just after the mail was received and before it is being delivered to the mailbox or imap file of the user.

Procmail, that does some simple scanning of incoming mails. hooks itself in an existing email flow by using an Unix pipe command in a "~/.forward" file.

Another method could be that Mailscanner monitors the incoming email ports and calls sendmail to handle it and does whatever to scan it before delivery to the user mailbox.

I cannot guarantee it, but I may have time to create a similar setup with postfix during the weekend. Will let you know
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail TLS gpatrick OpenBSD General 5 26th February 2011 01:42 AM
Mailscanner + Postfix problem after update giagni FreeBSD Ports and Packages 1 12th May 2009 12:37 PM
Sendmail Timmy66 OpenBSD General 11 19th October 2008 03:01 PM
Using sendmail in a cron job erehwon OpenBSD General 6 15th May 2008 09:03 PM
Sendmail, issues... pcfxer FreeBSD General 2 8th May 2008 10:07 AM

All times are GMT. The time now is 07:48 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick