Postfix Catch all problem

Discussion in 'Installation/Configuration' started by madlew, Apr 6, 2006.

  1. madlew

    madlew New Member

    I have configured ispconfig onto a "perfect debian setup" and I've had a few problems with postfix. I am now able to send mail but ALL mail that comes into the server seems to go into one account :confused:
    I have 3 domians and all email goes to the catch all account for one of the domain.
    What have I done wrong? What logs/files do you want to see?

    Tanks
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

  3. madlew

    madlew New Member

    Thank you for your quick reply Till but sorry to sound stupid, I didnt understand it.
    I dont have any refference to $mydomain in the main.cf file. Should there be ?

    Here is what it looks like:
    Code:
    smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
    biff = no
    
    # appending .domain is the MUA's job.
    append_dot_mydomain = no
    
    # Uncomment the next line to generate "delayed mail" warnings
    #delay_warning_time = 4h
    
    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases
    myorigin = /etc/mailname
    mydestination = /etc/postfix/local-host-names
    mailbox_command = procmail -a "$EXTENSION"
    mailbox_size_limit = 0
    recipient_delimiter = +
    smtpd_sasl_local_domain =
    smtpd_sasl_auth_enable = yes
    smtpd_sasl_security_options = noanonymous
    broken_sasl_auth_clients = yes
    smtpd_recipients_restrictions = permit_sasl_authenticated,permit_mynetwork,reject_unauth_destination
    smtpd_tls_auth_only = no
    smtpd_use_tls = yes
    smtp_use_tls = yes
    smtp_tls_note_starttls_offer = yes
    smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
    smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
    smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
    smtpd_tls_CA_file = /etc/postfix/ssl/cacert.pem
    smtpd_tls_loglevel = 1
    smtpd_tls_received_header = yes
    smtpd_tls_session_cache_timeout = 3600s
    tls_random_source = dev:/dev/urandom
    home_mailbox = Maildir/
    virtual_maps = hash:/etc/postfix/virtusertable
    mydestination = /etc/postfix/local-host-names
    
    Thanks for looking
     
  4. falko

    falko Super Moderator Howtoforge Staff

    What's the output of
    Code:
    telnet localhost 25
    ?
     
  5. madlew

    madlew New Member

    Code:
    control:~# telnet localhost 25
    Trying 127.0.0.1...
    Connected to localhost.localdomain.
    Escape character is '^]'.
    220 control.s[B]iando-computers.com[/B] ESMTP Postfix (Debian/GNU)
    
    Thats the real domain too if you want to try it. Also madlew.co.uk points to this server.

    P.S dont you guys sleep :p
     
  6. falko

    falko Super Moderator Howtoforge Staff

    So you're using siando-computers.com for a web site on the same server, and that web site also has the catch-all account that receives all emails?
    That's what http://www.howtoforge.com/faq/index.php?action=artikel&cat=14&id=33&artlang=en is about. You should set myhostname (in /etc/postfix/main.cf) to another (unused) domain that also points to your server. It's a good idea to get yourself a technical domain that you don't use for web sites, emails, etc.
     
  7. madlew

    madlew New Member

    Oh ok, so if I remove the site siando-computers.com from ISPConfig it will all be ok? Then I can us it as the "techincal domain" ?
     
  8. falko

    falko Super Moderator Howtoforge Staff

    If you don't need siando-computers.com for a web site and email addresses, you can do it like that.
     
  9. madlew

    madlew New Member

    but if I do want to use siando-computers.com could I just change the machine hostname/domain ?
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    yes, thats correct.
     

Share This Page