Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 20th February 2008, 08:32
Lawrence Mwangi Lawrence Mwangi is offline
Junior Member
 
Join Date: Feb 2008
Location: Nairobi, Kenya
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Lawrence Mwangi
Default Disabling Incoming Mails to have Disclaimer

How to disable Incoming mails from carrying My disclaimer. Right now both Incoming and Outgoing carry the disclaimer. What do i need to do on the /etc/postfix/master.cf or any other file ?
Reply With Quote
Sponsored Links
  #2  
Old 21st February 2008, 17:06
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Take a look here: http://www.howtoforge.com/add-discla...ix-debian-etch
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 22nd February 2008, 11:47
Lawrence Mwangi Lawrence Mwangi is offline
Junior Member
 
Join Date: Feb 2008
Location: Nairobi, Kenya
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Lawrence Mwangi
Default Disclaimer Problem

Falko, thanks for the reply, I have tried to specify the addresses from which the Disclaimer should seek addresses from by creating this file, /etc/postfix/disclaimer_addresses and ammending the /etc/postfix/disclaimer as instructed.
However this is the error i get

"/etc/postfix/disclaimer". Command output: /etc/postfix/disclaimer:
> line 22: -m: command not found cut: the delimiter must be a single
> character Try `cut --help' for more information. cut: the delimiter must
> be a single character Try `cut --help' for more
> information. /etc/postfix/disclaimer:
> line 35: syntax error: unexpected end of file
>
> AND THE LINE AT /etc/postfix/disclaimer which brings the error is this one
>
>
> #from_address=´grep -m 1 ¨From:¨ in.$$ | cut -d ¨<¨ -f 2 | cut -d ¨>¨ -f 1´
>
> #if [ ´grep -wi ^${from_address}$ ${DISCLAIMER_ADDRESSES}´ ]; then

any Help?
Reply With Quote
  #4  
Old 23rd February 2008, 16:55
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Please copy the script from the tutorial and paste it into /etc/postfix/disclaimer. Then try again.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 26th February 2008, 13:39
Lawrence Mwangi Lawrence Mwangi is offline
Junior Member
 
Join Date: Feb 2008
Location: Nairobi, Kenya
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Lawrence Mwangi
Default Disclaimer

Progress noted thanks, I have done a copy and paste from the tutorial but am getting this error

"/etc/postfix/disclaimer". Command output: /etc/postfix/disclaimer: line
39: syntax error: unexpected end of file

when I vi +39 /etc/postfix/disclaimer it takes me to line 38 which actually is the last command i.e. exit $?

I have re-done this several times with the same result, where i am going wrong?
Reply With Quote
  #6  
Old 26th February 2008, 16:12
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 153 Times in 150 Posts
Default

Try adding a new line at that point.
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #7  
Old 27th February 2008, 07:51
Lawrence Mwangi Lawrence Mwangi is offline
Junior Member
 
Join Date: Feb 2008
Location: Nairobi, Kenya
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Lawrence Mwangi
Default Disclaimer

Adding a line even a comment simply takes the syntax error to the next line i.e.
line 40 while the previous was at 39.
40: syntax error: unexpected end of file

I have recopied the disclaimer file and not edited even a single line. I may be closer to a the solution as right now i dont have that any anymore NOR I dont have the Disclaimer neither on Outgoing or Incoming. See the Logs as i have noted that initially the mail passes thru dfilt before being handed over to the SMTP. Any help? (actual domains changed)

Feb 27 09:30:27 mail postfix/qmgr[3781]: ADC64760947: from=<test@xyz.com>, size=1184, nrcpt=1 (queue active)
Feb 27 09:30:27 mail postfix/smtpd[3790]: disconnect from mail.xyz.com[127.0.0.1]
Feb 27 09:30:27 mail imap-login: Login: test [127.0.0.1]
Feb 27 09:30:27 mail postfix/pipe[3793]: ADC64760947: to=<mlawrence@abckenya.com>, relay=dfilt, delay=0, status=sent (mail.xyz.com)
Feb 27 09:30:27 mail postfix/qmgr[3781]: ADC64760947: removed
Feb 27 09:30:27 mail postfix/pickup[3780]: D0F88760947: uid=406 from=<test@xyz.com>
Feb 27 09:30:27 mail postfix/cleanup[3792]: D0F88760947: message-id=<56382.80.240.200.179.1204093827.squirrel@mail. xyz.com>
Feb 27 09:30:27 mail postfix/qmgr[3781]: D0F88760947: from=<test@xyz.com>, size=1306, nrcpt=1 (queue active)
Feb 27 09:30:28 mail imap-login: Login: test [127.0.0.1]
Feb 27 09:30:42 mail postfix/smtp[3993]: D0F88760947: to=<mlawrence@abckenya.com>, relay=mailout.abckenya.com[80.240.192.17], delay=15, status=sent (250 2.0.0 Ok: queued as C4D48406A9F)
Reply With Quote
  #8  
Old 27th February 2008, 12:26
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Please make sure that /etc/postfix/disclaimer contains Unix linebreaks, not Windows linebreaks. If you edit the file on Windows, please make sure you use an editor that can save the file with Unix linebreaks.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #9  
Old 27th February 2008, 14:41
Lawrence Mwangi Lawrence Mwangi is offline
Junior Member
 
Join Date: Feb 2008
Location: Nairobi, Kenya
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Lawrence Mwangi
Default Disclaimer

Falko , thanks so far for your contribution and that of topdog, am fully using linux Suse 10.2 and whatever am editing on the linux box is running on Centos, I dont think am using any windows related OS, (i stand to be corrected).
Reply With Quote
  #10  
Old 28th February 2008, 18:46
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
 
Default

Then I have no idea what's wrong. But I don't seem to be the only one who always has problems with SUSE...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

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
SuSE + Postfix = some mails get lost v8hadas Installation/Configuration 4 29th November 2007 21:29
Postifx - moving incoming and outgoing mails to different account webbies Server Operation 2 4th June 2007 09:41
how to verify if mails got sent? Ovidiu Server Operation 7 29th March 2007 14:25
Rules on incoming mails ? vincen Tips/Tricks/Mods 5 17th December 2006 16:44
No incoming mails! mlanglois Installation/Configuration 4 24th January 2006 11:41


All times are GMT +2. The time now is 00:19.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.