:D All recieved mails goes to the system admin user ??help

Discussion in 'Installation/Configuration' started by Mounir, Jul 26, 2006.

  1. Mounir

    Mounir New Member

    Hi guys,

    All my recieved mail goes to system admin user [email protected]

    I can send mail from all the mail adresses i made with ISPConfig. but all de mail naar my server goes to admin.

    mail.log:
    ======

    netstat -tap
    =========

    Virtusetable:
    =========

    ###################################
    #
    # ISPConfig virtusertable Configuration File
    # Version 1.0
    #
    ###################################
    [email protected] postmaster
    [email protected] postmaster
    #### MAKE MANUAL ENTRIES BELOW THIS LINE! ####


    Hope u can help.
    Thanx
     
    Last edited: Jul 28, 2006
  2. till

    till Super Moderator Staff Member ISPConfig Developer

  3. Mounir

    Mounir New Member

    Hi,

    this is my main.cf

    the admin mail adres is the system admin user.
    I create postmaster user with ICPConfig. after i create domain with the seem domain name of the system.

    It seems wrong i thenk, if i read this:

    1-But evenif i create user with the system, the recievedmail steel goes to [email protected]

    2-I don't see $mydomain in the main.cf ??? help !!:D

    Thanx
     
    Last edited: Jul 28, 2006
  4. falko

    falko Super Moderator Howtoforge Staff

    You must have
    Code:
    mydestination = /etc/postfix/local-host-names
    instead of
    Code:
    mydestination = mail.digitallou.com, localhost.digitallou.com, localhost
    in /etc/postfix/main.cf. Please change that and restart Postfix.
     
  5. Mounir

    Mounir New Member

    Done
    But i get this in mail.log


     
    Last edited: Jul 28, 2006
  6. falko

    falko Super Moderator Howtoforge Staff

    Please check /etc/aliases if you have an alias for postmaster that redirects your mails to admin.
     
  7. Mounir

    Mounir New Member


    Right everything goes to root. I didn't mess with the aliases file.!! Do i have to change it manualy?how?
    Thanxx!


    mailer-daemon: postmaster
    postmaster: root
    nobody: root
    hostmaster: root
    usenet: root
    news: root
    webmaster: root
    www: root
    ftp: root
    abuse: root
    noc: root
    security: root
    root: admin

    I just tryed this and after a reboot, my mail still goes to admin.

    mailer-daemon: postmaster
    postmaster: postmaster
    #nobody: root
    #hostmaster: root
    #usenet: root
    #news: root
    #webmaster: root
    #www: root
    #ftp: root
    #abuse: root
    #noc: root
    #security: root
    #root: admin
     
    Last edited: Jul 30, 2006
  8. falko

    falko Super Moderator Howtoforge Staff

    After you've changed /etc/aliases, you must run the command
    Code:
    newaliases
    on the shell. Also restart Postfix.
     
  9. Mounir

    Mounir New Member


    It works.
    I have to ajust the aliases file every time a add a user.

    newaliases on the shell and restart postfix.

    Thanx man,:D
     

Share This Page