root@domain ...

Discussion in 'Installation/Configuration' started by xma, Jul 14, 2006.

  1. xma

    xma New Member

    Hi to all,

    I configured a ispconfig half year ago and all need all works fine :) but local usernames like root or uucp can recieve mails from all localdomains configured in postfix.

    I have an alias from root to my account and in the begining of the server I recieved few mails but every day I have more domains and it starting to be heavy because I recieve a lot of spam to [email protected], [email protected]...

    At anyone occurs the same?
    Can anyone help me?

    Some thanks in advance
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    What is in your /etc/postfix/alias file?
     
  3. xma

    xma New Member

    In main.cf i have:
    alias_maps = hash:/etc/aliases

    And I think I have a standard /etc/aliases, is a large file with names like:
    # General redirections for pseudo accounts in /etc/passwd.
    administrator: root
    daemon: root
    lp: root
    news: root
    uucp: root
    games: root
    man: root
    at: root
    postgres: root
    mdom: root
    amanda: root
    ftp: root
    wwwrun: root
    squid: root
    msql: root
    gnats: root
    nobody: root

    And one that points root to my local username.
     
  4. falko

    falko Super Moderator Howtoforge Staff

    Either remove that alias from /etc/aliases and run
    Code:
    newaliases
    afterwards, or turn on the spamfilter for your email account in ISPConfig.
     
  5. xma

    xma New Member

    Hi Falko,

    In action you comment, I only disable forwarding root mails to my user, but root will continue recieving mails from root@domain1, root@domain2 ...

    I was thinking in a make a black list of local usernames destinations maybe in spamassassin or in postfix, is it possible?

    Some thanks
     
  6. falko

    falko Super Moderator Howtoforge Staff

    Then you must create an email alise called root for one of the email accounts of these domains.
     
  7. xma

    xma New Member

    Hi,

    I have been making different test and I look this:

    There are local usernames like:

    domain1.user11
    domain2.user21
    domain2.user22

    And a virtusertable like:

    user11@domain1 domain1.user11
    user21@domain2 domain2.user21
    user22@domain2 domain2.user22

    At this point all seems ok, but when I send a mail to domain2.user22@domain1 the mail arrives OK to domain2.user22.

    It seems like there aren't restrictions between usernames and domains, all localusernames can recieve mails at all domains.

    I revised postfix configuration, I disabled aliases sentence without solve the problem.

    Please, ¿anyone can make this kind of test and tell me the results?
    It a normal functionality of postfix/ispconfig?

    Some thanks in advance.

    Xavi
     
  8. falko

    falko Super Moderator Howtoforge Staff

    This is the normal behaviour.
     
  9. xma

    xma New Member

    In my opinion,

    It shouldn't be like that, because it generates a lot of spam between usernames in diferent domains, don't you think so?

    Did you know if I can't do anything to solve this fact? actually my username recieves more than 100 spam daily, and I only have less than 10 domains in a box. Imagine when I have 30 o more domains,

    Is anybody in the same problem?

    Some thanks to all
     
  10. Ben

    Ben Active Member Moderator

    One thing is the "light" configuration of postfix.
    You can e.g. check if the mail comes from dialuphosts and deny them (because if sb. sends mail from a server with a dynamic address its his own problem, but that you have to decide on your ow), as well as machines identifying with your server's address in HELO / EHLO.
    Mor than that you can also activate greylisting.

    All together it works really fine for me reducing spam.
     
  11. xma

    xma New Member

    But the big problem is that one user can recieve emails from other domains.

    How the big ISP using postfix solve this?

    thanks
     
  12. falko

    falko Super Moderator Howtoforge Staff

    Only if you use the real usernames in the email address, e.g. [email protected]. But normally you use some kind of email alias like [email protected].
     
  13. xma

    xma New Member

    I added spamhaus BL in smtp client restrictions in main.cf and seems I recieve less spam.

    Some thanks to all for the replies
     

Share This Page