Your ads will be inserted here by

Easy Plugin for AdSense.

Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot.

How to make Thunderbird know your configuration ports?
Thunderbird smtp/pop/imap auto setup.

The goal is to setup thunderbird by any non-tech with only 2 available information, i.e. username/email and password.

There is two ways of achieving this.
1) Provide mail server infrmation to mozilla database this could take forever and wait until they verify and update there database.
2) create a autoconfig and point (dns) somewhere.
probably the easiest.

How to achieve this. Its simple.

Create a xml called: config-v1.1.xml
Setup xml accordingly, (as your port is) and point autoconfig.domain.com into particular server. 🙂

 

 

<clientConfig version="1.1">
<emailProvider id="mail.ashishnepal.com">
<domain>mail.ashishnepal.com</domain>
<displayName>Ashish Nepal Mail</displayName>
<displayShortName>AshishMail</displayShortName>
<incomingServer type="imap">
<hostname>mail.Ashishnepal.com</hostname>
<port>993</port>
<socketType>SSL</socketType>
<authentication>password-encrypted</authentication>
<username>%EMAILADDRESS%</username>
</incomingServer>
<identity>
"Organization: Verizon"
</identity>
<outgoingServer type="smtp">
<hostname>mail.ashishnepal.com</hostname>
<port>465</port>
<socketType>SSL</socketType>
<authentication>password-encrypted</authentication>
<username>%EMAILADDRESS%</username>
</outgoingServer>
</emailProvider>
</clientConfig>

Lighttpd Configuration:

vi lighttpd.conf

server.document-root    = "/www/mail.ashishnepal.com/"
server.modules          = (
                                "mod_access",
                                "mod_accesslog",
                                "mod_fastcgi",
                                "mod_rewrite",
                                "mod_auth",
                                "mod_compress",
                                "mod_setenv",
                                "mod_cgi",
                                "mod_redirect"
)

server.indexfiles           = ( "index.php", "index.html",
                                "index.htm", "index.rb")

mimetype.assign = (
  ".html" => "text/html",
  ".txt" => "text/plain",
  ".css" => "text/css",
  ".jpg" => "image/jpeg",
  ".png" => "image/png",
  ".xml" => "text/xml"
)


accesslog.filename      = "/logs/www/mail.ashishnepal.com/access_log"
server.errorlog         = "/logs/www/mail.ashishnepal.com/error_log"

ssl.engine              = "enable"
ssl.pemfile             = "/etc/lighttpd/ashishnepal.com.pem"

fastcgi.server = ( ".php" => ((
                     "bin-path" => "/usr/local/bin/php-cgi",
                     "socket" => "/tmp/php.socket"
                 )))



static-file.etags = "enable"
etag.use-mtime = "enable"
$HTTP["url"] =~ "^/roundcubemail/(plugins|skins|program)" {
setenv.add-response-header  = ( "Cache-Control" => "public, max-age=2592000")
}
compress.cache-dir   = "/var/cache/compress"
compress.filetype = (
                        "text/plain",
                        "text/html",
                        "text/javascript",
                        "text/css",
                        "text/xml",
                        "image/gif",
                        "image/png")

cgi.assign = (
                "/webmail/webadmin" => "",
                "/webmail/webmail" => ""
             )

$SERVER["socket"] == ":80" {
  $HTTP["host"] =~ "mail.ashishnepal.com" {
    url.redirect = ( "^/(.*)" => "https://mail.ashishnepal.com/$1" )
  }
}


# autoconfig.ashishnepal.com

$HTTP["host"] =~ "autoconfig.ashishnepal.com" {

        server.document-root= "/www/autoconfig.ashishnepal.com/"
        accesslog.filename = "/logs/www/autoconfig.ashishnepal.com/ssl_access_log"


}