LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-24-2006, 02:20 AM   #1
drumltd
Member
 
Registered: Sep 2003
Posts: 48

Rep: Reputation: 15
Postfix and Altermime


I've been asked to put a sort of disclaimer on all our emails (not my choice but hey) Reading up on doing this with Postfix, it looked like the best way to do it was to filter outgoing emails through Altermime. So I used the instructions at http://www.paw.za.org/docs/howtos/po...ime-howto.html

I've worked through most of it, however I have several unanswered questions now I've done it.

Firstly what do I need to change in main.cf to enable content filtering in postfix. At the very least I would expect to have put something in content_filter=


Secondly as per the instructions I've replaced

Quote:
smtp unix - - n - - smtp
with

Quote:
192.168.0.2:smtp inet n - n - - smtp
192.168.0.3:smtp inet n - n - - smtp -o content_filter=dfilt:
127.0.0.1:smtp inet n - n - - smtp
However I get errors saying that something is already running on port 25, but I'm not sure what.

Any help most appreciated.

Dave
 
Old 08-24-2006, 04:47 AM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I assume you added the line

dfilt unix - n n - - pipe
flags=Rq user=filter argv=/etc/postfix/disclaimer -f ${sender} -- ${recipient}

Try

netstat -n -p --listen | grep :25

to see what's listening - should be master (ie postfix)
 
Old 08-24-2006, 04:51 AM   #3
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Sorry - on the content filter question, there's heaps of information at

http://www.postfix.org/documentation.html

What are you trying to achieve?
 
Old 08-24-2006, 04:58 AM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Me again, but which line did you replace? When I got altermime working (I don't actually use it, I just wanted to know that I could), the line I relaced was

smtp inet n - n - - smtpd

with the lines you've quoted.
 
Old 08-24-2006, 07:21 AM   #5
drumltd
Member
 
Registered: Sep 2003
Posts: 48

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by billymayday
I assume you added the line

dfilt unix - n n - - pipe
flags=Rq user=filter argv=/etc/postfix/disclaimer -f ${sender} -- ${recipient}

Try

netstat -n -p --listen | grep :25

to see what's listening - should be master (ie postfix)
Yes I have added that section at the end of the master file.


The only entry listed by netstat is indeed 'Master' and if I stop postfix it does disappear. So I can understand what is already using port 25 when I try to setup the filtering ports.
 
Old 08-24-2006, 07:23 AM   #6
drumltd
Member
 
Registered: Sep 2003
Posts: 48

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by billymayday
Sorry - on the content filter question, there's heaps of information at

http://www.postfix.org/documentation.html

What are you trying to achieve?
I'm just trying to add a simple disclaimer to all outgoing emails. Didn't think it would be this hard. I've have a browse of the docs see if I can find any help thanks.
 
Old 08-24-2006, 07:23 AM   #7
drumltd
Member
 
Registered: Sep 2003
Posts: 48

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by billymayday
Me again, but which line did you replace? When I got altermime working (I don't actually use it, I just wanted to know that I could), the line I relaced was

smtp inet n - n - - smtpd

with the lines you've quoted.
My original line was -

smtp unix - - n - - smtp
 
Old 08-24-2006, 04:04 PM   #8
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
As I tried to imply before, I think it's the line

smtp inet n - n - - smtpd


that you need to replace with

192.168.0.2:smtp inet n - n - - smtp
192.168.0.3:smtp inet n - n - - smtp -o content_filter=dfilt:
127.0.0.1:smtp inet n - n - - smtp

not the line

smtp unix - - n - - smtp


Give that try, and if it odesn't work, I'll refire altermime up here to confirm

As I recall the prcess, I didn't need to chahge anything in main.cf

Last edited by billymayday; 08-24-2006 at 04:07 PM.
 
Old 08-24-2006, 04:13 PM   #9
drumltd
Member
 
Registered: Sep 2003
Posts: 48

Original Poster
Rep: Reputation: 15
Ahh I see.

I'll give that a go tomorrow, when I'm back near the machine concerned then.

Cheers
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix send mail problem(In RH9, kernal 2.4.20, postfix 2.1.5) minor Linux - General 6 09-23-2019 10:09 PM
Postfix - how do hosted domains download their mail from my postfix franschoek Linux - Software 1 04-01-2006 09:41 PM
AlterMIME configuration problem hasnain Linux - Software 0 02-28-2005 12:23 PM
can't start postfix ./postfix status error jules_fraser Linux - Software 3 12-06-2003 06:33 PM
move postfix mails from server to another postfix server onetwo Linux - Software 2 03-18-2003 02:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration