Email Settings query
  • Hi there

    I've setup my external email settings through my hosting providor, but they don't seem to be working at this end.

    I can send and receive emails with the mailbox, do I need to have anything installed on my VPS?

    Settings are:
    admin@ttg-interactive.com
    mail.ttg-interactive.com
    Port 26
    Requires authentication checked

    Mark
    Post edited by Mark Almond at 2012-11-05 19:56:33
  • 15 Comments sorted by
  • Vote Up0Vote Down Albert FRAlbert FR
    Posts: 1,978Member, Airtime Moderator
    you need an Mail Transport Agent like postfix, sendmail, ... on your server to do this
  • Ok

    Thank you

    I'll install one now
  • Well

    I've installed sendmail and sent a test email and it works but I'm still getting the error that my email settings are not correct.

    This is a external smtp mailbox setup on my webserver and it works from there, is there any configurations I need to change in sendmail?

    I'm new to linux so a bit stuck

    Mark
  • Vote Up0Vote Down Albert FRAlbert FR
    Posts: 1,978Member, Airtime Moderator
    yep, but sendmail is not the more evident to do that ;-)
    i'm sorry but i'm a postfix addict not a sendmail user
    anyway i think you can find more information on google :-)

    https://www.google.fr/search?q=sendmail+external+smtp&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:fr:official&client=firefox-a
  • Well I could install postifx instead of sendmail as my vps is only going to be used for airtime.

    So if I install postfix will this rectify the problem?
  • Vote Up0Vote Down Albert FRAlbert FR
    Posts: 1,978Member, Airtime Moderator
    not a all, you just configure correctly your main.cf :-)
    I know how to do that on postfix, like i said but not with sendmail
    but how i said before, you can find a lot of easy tutorial on google :-D
  • Ok I've installed Postfix.

    Here's my main.cf file

    I don't know what to change on it.

    # See /usr/share/postfix/main.cf.dist for a commented, more complete version


    # Debian specific:  Specifying a file name will cause the first
    # line of that file to be used as the name.  The Debian default
    # is /etc/mailname.
    #myorigin = /etc/mailname

    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

    readme_directory = no

    # TLS parameters
    smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
    smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
    smtpd_use_tls=yes
    smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
    smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

    # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
    # information on enabling SSL in the smtp client.

    myhostname = 1162-2990-4227.bhost.net
    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases
    myorigin = /etc/mailname
    mydestination = 1162-2990-4227.bhost.net, localhost.bhost.net, , localhost
    relayhost =
    mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
    mailbox_command = procmail -a "$EXTENSION"
    mailbox_size_limit = 0
    recipient_delimiter = +
    inet_interfaces = all

  • Vote Up0Vote Down Albert FRAlbert FR
    Posts: 1,978Member, Airtime Moderator
    relayhost = your.smtp.domain

    but perhaps you need authentication :

    smtp_sasl_auth_enable = yes

    smtp_sasl_security_options =

    smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd

    and into /etc/postfix/sasl_passwd


    [smtp.fai.fr] user:passwd


    Post edited by Albert FR at 2012-11-06 10:03:56
  • I've followed what you did above

    but I'm getting the same response as before
  • Vote Up0Vote Down Albert FRAlbert FR
    Posts: 1,978Member, Airtime Moderator
    I don't know how you have configured your server ;-)
    and if your stmp accept relaying or need identification or is on another port...
    you can find a lot of really easy tutorial on the net to do that

    i've forgot something, you are not on a standard port, try this :

    [smtp.fai.fr]:26 user:passwd

  • here's my conf file since I've updated it

    Could I not just use postfix to send out emails rather than smtp?



    # See /usr/share/postfix/main.cf.dist for a commented, more complete version


    # Debian specific:  Specifying a file name will cause the first
    # line of that file to be used as the name.  The Debian default
    # is /etc/mailname.
    #myorigin = /etc/mailname

    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

    readme_directory = no

    # TLS parameters
    smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
    smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
    smtpd_use_tls=yes
    smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
    smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

    # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
    # information on enabling SSL in the smtp client.

    myhostname = 1162-2990-4227.bhost.net
    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases
    myorigin = /etc/mailname
    mydestination = 1162-2990-4227.bhost.net, localhost.bhost.net, , localhost
    relayhost = mail.ttg-interactive.com
    mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
    mailbox_command = procmail -a "$EXTENSION"
    mailbox_size_limit = 0
    recipient_delimiter = +
    inet_interfaces = all
    smtp_sasl_auth_enable = yes
    smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
    smtp_sasl_security_options =
    [smtp.fai.fr]:26 admin:password
    and into /etc/postfix/sasl_passwd 


  • Vote Up0Vote Down Albert FRAlbert FR
    Posts: 1,978Member, Airtime Moderator
    in fact postfix is only a MTA
    if you only want to send email and not received them
    you can only use it
    but into airtime configuration don't fill "Configure Mail Server"
    but click only on the checkbox to  "Enable System Emails (Password Reset)"
  • I've unchecked it and still no joy

  • Vote Up0Vote Down Cliff WangCliff Wang
    Posts: 339Member, Sourcefabric Team
    Hey, Mark,

    Do you have gmail account? Please try following settings:

    Mail Server: smtp.gmail.com
    Port: 465
    Requires Authentication: check
    Email Address: your gmail address
    Password: your password
    Then  check Enable System Emails (Password Reset) to test it.\

    Thanks.
    Cloud Radio -> http://airtime.pro
  • I've sorted it out now thank you