mail to non-existant accounts going to root

Discussion in 'General' started by ctql, Sep 5, 2006.

  1. ctql

    ctql New Member HowtoForge Supporter

    All emails that should be bounced because the account doesn't exist are ending up in root's mailbox. How do I stop this? (Sorry, I'm sure this has been answered before but I couldn't find it.)
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Have you forwarded any account in ISPConfig to the root account?
     
  3. fobicodam

    fobicodam ISPConfig Developer ISPConfig Developer

    I bet, youve checked catch all to some main domain's address?

    I still believe you must add an alias to admispconfig...
     
  4. ctql

    ctql New Member HowtoForge Supporter

    No to both posts. I have forwarded root to my email address in the /etc/aliases file but I don't see how that would change anything.
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

  6. ctql

    ctql New Member HowtoForge Supporter

    I did match the link you posted before but I've reset the domain names so the server isn't on the same domain as ones I'm hosting. The problem hasn't gone away. Any other ideas?
     
  7. edge

    edge Active Member Moderator

    Not sure if this will work for you (it did for me)

    Open: /etc/postfix/main.cf, and add local_recipient_maps = $alias_maps
    After this you will need to to a: postfix reload

    Postfix will now look in $alias_maps. If the user does not exisit it will bounce the message

     
    Last edited: Oct 24, 2006
  8. ctql

    ctql New Member HowtoForge Supporter

    Still receiving emails to [email protected], [email protected], and (confusingly) [email protected]

    should I comment out this line:
    alias_maps = hash:/etc/aliases

    I assume that's why I'm receiving mail to root and webmaster, but the alicia isn't listed in there so that has me confused.
     
  9. falko

    falko Super Moderator ISPConfig Developer

    I think it's better to modify /etc/aliases and run
    Code:
    newaliases
    afterwards.

    What's in /etc/aliases? What's the output of
    Code:
    grep alicia /etc/passwd
    ?
     
  10. ctql

    ctql New Member HowtoForge Supporter

  11. falko

    falko Super Moderator ISPConfig Developer

  12. ctql

    ctql New Member HowtoForge Supporter

    No, alicia isn't forwarding. There's also been a couple emails arriving at the wrong mailboxes other than mine. I just get the bulk of it. As for the webmaster, yes you're correct. That's why I was asking if I could get rid of this line: alias_maps = hash:/etc/aliases
     
  13. falko

    falko Super Moderator ISPConfig Developer

    I'd just change the webmaster line in /etc/aliases or delete the line if you don't need it. Run
    Code:
    newaliases
    afterwards.
     

Share This Page