Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 7th April 2007, 01:40
tom tom is offline
Senior Member
 
Join Date: Apr 2006
Posts: 492
Thanks: 8
Thanked 8 Times in 7 Posts
Default 1000 of Mails I dont want ...

Im using postfix with ISPConfig. In the virtualusertable I find only entries for wanted mailaddresses.

But I'm getting lots of spam mail collected in /root/Maildir with the recipint addresses like:

Quote:
postmaster@yxz.de
webmaster@xyz.de
root@yxz.de
Why is postfix taking this mails, it is'nt configured to take it. How can I get rid of this unwanted mails or do I realy need those mailaddresses for something?
Reply With Quote
Sponsored Links
  #2  
Old 7th April 2007, 14:38
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
Originally Posted by tom
Why is postfix taking this mails, it is'nt configured to take it. How can I get rid of this unwanted mails or do I realy need those mailaddresses for something?
I guess these addresses are configured in /etc/aliases. These are standard addresses. At least the postmaster address is required (see http://www.unet.univie.ac.at/aix/aix...n/ml_alias.htm ).

If you don't want these mails, you can forward them do /dev/null, e.g.:

Code:
webmaster: /dev/null
in /etc/aliases. Run
Code:
newaliases
after your changes and restart Postfix.
__________________
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 7th April 2007, 17:47
tom tom is offline
Senior Member
 
Join Date: Apr 2006
Posts: 492
Thanks: 8
Thanked 8 Times in 7 Posts
Default

Quote:
Originally Posted by falko
...
If you don't want these mails, you can forward them do /dev/null, e.g.: ...
Would id be ok to forward all aliases without the postmaster to dev/null like:
Quote:
postmaster: root
mailer-daemon: root
nobody: /dev/null
hostmaster: /dev/null
usenet: /dev/null
news: /dev/null
webmaster: /dev/null
www: /dev/null
ftp: /dev/null
abuse: /dev/null
noc: /dev/null
security: /dev/null
root: /dev/null
I'm not sure which adresses are maby used by local demons to send mails but I that case I would be better that those mails are reaching read users like the admin and not root. How do I configure postfix and /etc/aliaces for reaching default mails only for example the admin@xyz.de?

Last edited by tom; 7th April 2007 at 18:17.
Reply With Quote
  #4  
Old 8th April 2007, 15:28
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
Would id be ok to forward all aliases without the postmaster to dev/null like:
Yes - if you don't need these mails.

Quote:
Originally Posted by tom
I'm not sure which adresses are maby used by local demons to send mails but I that case I would be better that those mails are reaching read users like the admin and not root. How do I configure postfix and /etc/aliaces for reaching default mails only for example the admin@xyz.de?
Like this:
Code:
postmaster:  admin
(in /etc/aliases).
This would forward all mails to postmaster to the admin user.
__________________
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 10th April 2007, 00:57
tom tom is offline
Senior Member
 
Join Date: Apr 2006
Posts: 492
Thanks: 8
Thanked 8 Times in 7 Posts
Default

ok, thanks.

Last edited by tom; 11th April 2007 at 15:24.
Reply With Quote
  #6  
Old 11th April 2007, 15:24
tom tom is offline
Senior Member
 
Join Date: Apr 2006
Posts: 492
Thanks: 8
Thanked 8 Times in 7 Posts
Default

How can I forward only the intern mail for root but block the exter mail for root?
Reply With Quote
  #7  
Old 11th April 2007, 15:28
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
 
Default

I'm not sure how to do this...
__________________
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
how to verify if mails got sent? Ovidiu Server Operation 7 29th March 2007 14:25
Sendmai can send mails but unable to receive mails satimis Server Operation 10 20th February 2007 17:10
Can't download or delete mails from account torusturtle Installation/Configuration 9 11th July 2006 10:58
How to send mails using php mail function outside domain pankaj Technical 1 19th December 2005 22:09
How to retrive mails from 2nd server dstme Server Operation 3 1st December 2005 18:28


All times are GMT +2. The time now is 01:46.


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