MX records - Mail Servers

Discussion in 'General' started by alexillsley, Feb 1, 2007.

  1. alexillsley

    alexillsley ISPConfig Developer ISPConfig Developer

    Hi
    What is the default address of my mail server for my hosting, as i need to set the MX record.
    Thanks,
    Alex
     
  2. martinfst

    martinfst ISPConfig Developer ISPConfig Developer

    How should we be able to tell? You own the domain, you know the IP of the server, so you have all the details I think. Combine the server IP with the server name/domain and you're ready to go.
     
  3. alexillsley

    alexillsley ISPConfig Developer ISPConfig Developer

    i posted this becuase i was wondering if it would be like pop3.domain.com or mail.domain.com
    Thanks

    How does the webmail (Ubei....) authenticate? does it authenticate by trying to connet to pop3? as it won let me log in even though i have created a used & email on the site
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    No, not unless you created these as A-Records in DNS. You can use any IP or domain that points to your server as SMTP and pop3 server.

    yes, it logs in with pop3.
     
  5. alexillsley

    alexillsley ISPConfig Developer ISPConfig Developer

    Mail fails

    There appears to be a problem with my mail server setup:confused:

    Whenever i try and login at the webmai li just get an error syaing the password or username is wrong. I then set up email forwarding sent an email to my forwarded email address and it appeared not to forward it back to me. What confuses me is that fact the ISPConfig says the POP3 & SMPT server are both online:confused:

    If it is of any use to you to help solve the problem the mail log has the following in it at the time of me logging in and also when i send an email for the server to forward:

    Code:
    l/etc/postfix/virtusertable
    Feb  1 23:23:47 server1 postfix/smtpd[4713]: warning: unsupported SASL server implementation: cyrus
    Feb  1 23:23:47 server1 postfix/smtpd[4713]: fatal: SASL per-process initialization failed
    Feb  1 23:23:48 server1 postfix/master[4483]: warning: process /usr/lib/postfix/smtpd pid 4713 exit status 1
    Feb  1 23:23:48 server1 postfix/master[4483]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
    Feb  1 23:23:51 server1 postfix/master[4483]: terminating on signal 15
    
    
    Thanks again,
    Alex
     
    Last edited: Feb 2, 2007
  6. alexillsley

    alexillsley ISPConfig Developer ISPConfig Developer

    I have reinstalled cryus and enabled the Mail Dir and it lets me login to the webmail!!!!!!!
    Thanks for you help!
     
    Last edited: Feb 2, 2007
  7. alexillsley

    alexillsley ISPConfig Developer ISPConfig Developer

    I now have a new problem whenever i try to send an email with the web mail i get the following error:

    Code:
    It was not possible to send this e-mail
    
    SMTP Error: Recipient not accepted. Verify your relay rules
    

    At the time of this happening the following error's appear in the mail log:

    Code:
    Feb  2 11:53:00 server1 postfix/smtpd[20827]: warning: unsupported SASL server implementation: cyrus
    Feb  2 11:53:00 server1 postfix/smtpd[20827]: fatal: SASL per-process initialization failed
    Feb  2 11:53:01 server1 postfix/master[19931]: warning: process /usr/lib/postfix/smtpd pid 20827 exit status 1
    Feb  2 11:53:01 server1 postfix/master[19931]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
    
    
    
     
  8. falko

    falko Super Moderator ISPConfig Developer

  9. alexillsley

    alexillsley ISPConfig Developer ISPConfig Developer

    This is the contents of master.cf:
    Code:
    smtp      inet  n       -       n       -       -       smtpd
    #submission inet n      -       n       -       -       smtpd
    #	-o smtpd_etrn_restrictions=reject
    #	-o smtpd_client_restrictions=permit_sasl_authenticated,reject
    #smtps    inet  n       -       n       -       -       smtpd -o smtpd_tls_wrappermode=yes
    #  -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
    #submission   inet    n       -       n       -       -       smtpd
    #  -o smtpd_etrn_restrictions=reject
    #  -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
    #628      inet  n       -       n       -       -       qmqpd
    pickup    fifo  n       -       n       60      1       pickup
    cleanup   unix  n       -       n       -       0       cleanup
    qmgr      fifo  n       -       n       300     1       qmgr
    #qmgr     fifo  n       -       n       300     1       oqmgr
    tlsmgr    unix  -       -       n       1000?   1       tlsmgr
    rewrite   unix  -       -       n       -       -       trivial-rewrite
    bounce    unix  -       -       n       -       0       bounce
    defer     unix  -       -       n       -       0       bounce
    trace     unix  -       -       n       -       0       bounce
    verify    unix  -       -       n       -       1       verify
    flush     unix  n       -       n       1000?   0       flush
    proxymap  unix  -       -       n       -       -       proxymap
    smtp      unix  -       -       n       -       -       smtp
    # When relaying mail as backup MX, disable fallback_relay to avoid MX loops
    relay     unix  -       -       n       -       -       smtp
    	-o fallback_relay=
    #       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
    showq     unix  n       -       n       -       -       showq
    error     unix  -       -       n       -       -       error
    discard   unix  -       -       n       -       -       discard
    local     unix  -       n       n       -       -       local
    virtual   unix  -       n       n       -       -       virtual
    lmtp      unix  -       -       n       -       -       lmtp
    anvil     unix  -       -       n       -       1       anvil
    #localhost:10025 inet	n	-	n	-	-	smtpd -o content_filter=
    scache	  unix	-	-	n	-	1	scache
    #
    #
    maildrop  unix  -       n       n       -       -       pipe
      flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
    cyrus	  unix	-	n	n	-	-	pipe
      user=cyrus argv=/usr/lib/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
    uucp	  unix	-	n	n	-	-	pipe
      flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
    ifmail    unix  -       n       n       -       -       pipe
      flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
    bsmtp     unix  -       n       n       -       -       pipe
      flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
    procmail  unix  -       n       n       -       -       pipe
      flags=R user=nobody argv=/usr/bin/procmail -t -m /etc/procmailrc ${sender} ${recipient}
    
    
    Im using the opensuse10.2 perfect setup
    Thanks again for helping:)
     
  10. falko

    falko Super Moderator ISPConfig Developer

    I need main.cf, not master.cf.
     
  11. alexillsley

    alexillsley ISPConfig Developer ISPConfig Developer

    sorry, here is main.cf

    Code:
    unknown_local_recipient_reject_code = 550
    
    
    debug_peer_level = 2
    
    
    debugger_command =
    	 PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
    	 xxgdb $daemon_directory/$process_name $process_id & sleep 5
    
    
    sendmail_path = /usr/sbin/sendmail
    
    
    newaliases_path = /usr/bin/newaliases
    
    
    mailq_path = /usr/bin/mailq
    
    
    setgid_group = maildrop
    
    
    html_directory = /usr/share/doc/packages/postfix/html
    
    
    manpage_directory = /usr/share/man
    
    readme_directory = /usr/share/doc/packages/postfix/README_FILES
    inet_protocols = all
    biff = no
    mail_spool_directory = /var/mail
    canonical_maps = hash:/etc/postfix/canonical
    #virtual_alias_maps = hash:/etc/postfix/virtual
    virtual_alias_domains = hash:/etc/postfix/virtual
    relocated_maps = hash:/etc/postfix/relocated
    transport_maps = hash:/etc/postfix/transport
    sender_canonical_maps = hash:/etc/postfix/sender_canonical
    masquerade_exceptions = root
    masquerade_classes = envelope_sender, header_sender, header_recipient
    myhostname = server1.$mydomain
    program_directory = /usr/lib/postfix
    inet_interfaces = all
    masquerade_domains = 
    #mydestination = $myhostname, localhost.$mydomain
    defer_transports = 
    mynetworks_style = subnet
    disable_dns_lookups = no
    relayhost = 
    mailbox_command = 
    mailbox_transport = 
    strict_8bitmime = no
    disable_mime_output_conversion = no
    smtpd_sender_restrictions = hash:/etc/postfix/access
    smtpd_client_restrictions = 
    smtpd_helo_required = no
    smtpd_helo_restrictions = 
    strict_rfc821_envelopes = no
    smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,check_relay_domains
    smtp_sasl_auth_enable = no
    smtpd_sasl_auth_enable = yes
    smtpd_use_tls = yes
    smtp_use_tls = yes
    alias_maps = hash:/etc/aliases
    mailbox_size_limit = 0
    message_size_limit = 10240000
    mydomain = ******
    mynetworks = 127.0.0.0/8
    smtpd_sasl_local_domain = 
    smtpd_sasl_security_options = noanonymous
    broken_sasl_auth_clients = yes
    smtpd_tls_auth_only = no
    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_loglevel = 1
    smtpd_tls_received_header = yes
    smtpd_tls_session_cache_timeout = 3600s
    tls_random_source = dev:/dev/urandom
    
    virtual_maps = hash:/etc/postfix/virtusertable
    
    mydestination = /etc/postfix/local-host-names
    
     
    Last edited: Apr 2, 2007
  12. falko

    falko Super Moderator ISPConfig Developer

  13. alexillsley

    alexillsley ISPConfig Developer ISPConfig Developer

    I installed them as the tutorial showed me:confused:

    How do i install this patch?

    Thanks again
     
  14. falko

    falko Super Moderator ISPConfig Developer

    Sure? Did you follow the tutorial as close as possible? Please try the Postfix setup again.
     
  15. alexillsley

    alexillsley ISPConfig Developer ISPConfig Developer

    I have tryed the email section on the tutorial again and it still fails
     
  16. falko

    falko Super Moderator ISPConfig Developer

    Maybe you should consider a clean re-install.
     
  17. alexillsley

    alexillsley ISPConfig Developer ISPConfig Developer

    I cant reinstall my system becuase i have got about 5 people using it:eek:

    However i have got some light on the siutation, if i comment out the following lines:
    Code:
    #smtp_sasl_auth_enable = yes
    #smtpd_sasl_auth_enable = yes
    
    The sending mail works:) But isnt this a security problem?

    Thanks,
    Alex
     
  18. martinfst

    martinfst ISPConfig Developer ISPConfig Developer

    This will most likely make you an open relay. Check your logs files for unusual activity!
     
  19. alexillsley

    alexillsley ISPConfig Developer ISPConfig Developer

    so any one can send mail through my server :confused:

    Is there anyway to get SASL Auth to work :confused:

    Thanks,
    Alex
     
  20. martinfst

    martinfst ISPConfig Developer ISPConfig Developer

    Check your mail logs. (/var/log/mail.log most likely)
     

Share This Page