postfix/mozills thunderbird mailclient

Discussion in 'Installation/Configuration' started by hotchilli, Jul 18, 2006.

  1. hotchilli

    hotchilli New Member

    I installed mozilla thunderbird mail client and in the incomimg and outgoing boxes i placed my fqn mail.hotchilli.net but connection was refused.

    in my /etc/hosts i have the entry 192.168.1.64 mail.hotchilli.net mail



    I have postfix and in the man.cf
    mynetwors = 127.0.0.1/8
    so in postfix main.cf i added this line to mynetworks 192.168.1.1/24
    but still on running thunderbired conection refused.

    hotchilli
     
  2. Ben

    Ben Active Member Moderator

    what tells /var/log/mail.log (/var/log/maillog) while trying to access your mailserver?

    maybe server or clientfirewall blocking incoming / outgoing traffic on that port?
     
  3. hotchilli

    hotchilli New Member

    mail client

    there is nothing in mail.log
    there is no client firewall

    hotchilli
     
  4. Ben

    Ben Active Member Moderator

    which OS do you run on your server?

    If nothing is in your mail.log then your mailserver does not receive anything.

    Any iptable rules active? -> iptables -L
     
  5. hotchilli

    hotchilli New Member


    OS is dapper drake 6.06(ubuntu) server

    iptables.

    Chain INPUT (policy ACCEPT)
    target prot opt source destination

    Chain FORWARD (policy ACCEPT)
    target prot opt source destination

    Chain OUTPUT (policy ACCEPT)
    target prot opt source destination


    if the above need to be completed? if so how to complete?

    here is part of my main.cf (no pop) does this matter for mail client that mail server doesnot have pop?

    main.cf
    postfix main.cf

    recipient_delimiter = +
    inet_interfaces = all
    inet_protocols = all
    smtpd_sasl_local_domain =
    smtpd_sasl_auth_enable = no
    smtpd_sasl_security_options = noanonymous
    broken_sasl_auth_clients = yes
    smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
    smtpd_tls_auth_only = yes
    smtp_use_tls = yes
    smtp_tls_note_starttls_offer = yes
    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

    -----------------------------------------------------------------------------------------------------------------------
    i have outgoing configured outgoing smtp to use localhost or 127.0.0.1 as its SMTP server. on prt 25
    in thunderbird but still refused connection to potfix.


    also under edit>>>>account settings>>>>>>>>>>>server settings
    server type: pop mail server
    server name :mail.hotchilli.net
    port :110
    user name admin (i must point out here that admin does not have root privlagies)
    use secure connection TLS







    hotchilli
     
    Last edited: Jul 19, 2006
  6. falko

    falko Super Moderator Howtoforge Staff

    Is 212.67.203.170 your server's public IP address?
    What's the output of
    Code:
    netstat -tap
    ?
     
  7. hotchilli

    hotchilli New Member

    mail client

    Is 212.67.203.170 your server's public IP address? no?

    netstat -tap

    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0 *:smtp *:* LISTEN 3972/master
    tcp6 0 0 *:ssh *:* LISTEN 3991/sshd
    tcp6 0 0 *:nntp *:* LISTEN 3891/innd
    tcp6 0 0 *:smtp *:* LISTEN 3972/master



    OK imy posrfix server does not have pop then what can i expect sorry.

    but what i would like to know is that postfix is a local ie 127.0.0.0.1/8

    now I have a smtp feed from my ISP and i only use postfix and my ISP
    in the way that I use the MX record from my ISP ie mail.hotchilli.com

    I am wondering if it would be possible in thunderbird to use the pop and smtp
    from my ISP ?

    but if i use the same usernames as are connected to my
    domain ie [email protected] and [email protected]) would this
    confuse things in my local serverv(postfix) as you can see in post no5
    of this thread how it is configured?





    hotchilli
     
    Last edited: Jul 20, 2006
  8. falko

    falko Super Moderator Howtoforge Staff

    That's not your server's public IP address? Then you must change the DNS record for mail.hotchilli.com because mail.hotchilli.com is pointing to that IP address which means your mail client connects to that IP address...
     
  9. hotchilli

    hotchilli New Member

    mail client

    ok its my fault first of all hotchili.net or . com is an example i used it is not my web site or ISP.

    I have two accounts at example.net

    hotchilli
    and
    admin(this user does not have root access)

    I am loged in as user hotchilli and am creating a mail account for [email protected]

    mail for hotchilli comes into /home/hotchilli
    and
    mail for adim comes into /home/admin

    thunderbird is altering me with this message

    unable to create lock file /var/spool/mail/hotchilli.lock for ovemail to work , it is neccessary
    to create lock files in the mail spool directory on many syatems this is beat done by making the
    the spool directory be mode 01777

    how to create lock files ?
    asuming my mail comes ito /home/admin how to change this to /var/spool directory?





    hotchilli
     
    Last edited: Jul 21, 2006
  10. falko

    falko Super Moderator Howtoforge Staff

    Please run
    Code:
    chmod 01777 /var/spool/mail/
    Do you use Maildir or mbox? What's the output of
    Code:
    netstat -tap
    ?
     
  11. hotchilli

    hotchilli New Member

    rob@hotchlli:~$ sudo chmod 01777 /var/spool/mail/
    Password:
    rob@hotchilli:~$ cd /var/spool
    rob@hotchilli:/var/spool$ ls -la
    total 24
    drwxr-xr-x 6 root root 4096 2006-06-29 10:53 .
    drwxr-xr-x 13 root root 4096 2006-06-13 14:47 ..
    drwxr-xr-x 5 root root 4096 2006-06-13 13:54 cron
    lrwxrwxrwx 1 root root 7 2006-06-13 14:47 mail -> ../mail
    drwxrwxr-x 8 news news 4096 2006-07-11 15:52 news
    drwxr-xr-x 19 root root 4096 2006-06-14 12:36 postfix
    drwxrwxr-x 2 news news 4096 2004-10-27 13:37 suck



    netstat -tap attached



    i think its maildir not mbox not sure.




    hotchilli
     

    Attached Files:

    Last edited: Jul 22, 2006
  12. falko

    falko Super Moderator Howtoforge Staff

    Please run
    Code:
    chmod 01777 /var/mail/
    You don't have a POP3/IMAP server running... Please start it and post the output of
    Code:
    netstat -tap
    again (please post it directly instead of attaching it in a file).
     

Share This Page