Mail Setup - Please help

Discussion in 'HOWTO-Related Questions' started by SJamG, Nov 23, 2007.

  1. SJamG

    SJamG New Member

    Hi There,

    I am a total newbie at all this, and i think i have managed to install Postfix and Courier, but i cannot seem to get a connection to my pop or imap servers, even telneting to localhost isnt working,

    ERR: Temporary Error, please try again later!!


    Can anyone help with this, even if someone could spare the time to talk em through what might be wrong i would be really grateful.

    Thanks very much

    Stuart Grant
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Which of the howtoforge tutorials did you use?
     
  3. SJamG

    SJamG New Member

    I used the perfect ubuntu setup 6.0.6

    followed it step by step

    So my server is :

    Ubuntu 6.0.6
    Postfix Mail
    Courier IMAP/POP

    Thanks for your reply
     
  4. volksman

    volksman New Member

    what's the output of 'ps aux' and 'netstat -a' post that here...it will be very helpful...
     
  5. SJamG

    SJamG New Member

    Output from ps aux

    [email protected]:~# ps aux
    USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
    root 1 0.0 0.4 2956 1856 ? Ss Nov09 0:00 /sbin/init
    root 2 0.0 0.0 0 0 ? S Nov09 0:00 [migration/0]
    root 3 0.0 0.0 0 0 ? SN Nov09 0:00 [ksoftirqd/0]
    root 4 0.0 0.0 0 0 ? S Nov09 0:00 [watchdog/0]
    root 5 0.0 0.0 0 0 ? S< Nov09 0:39 [events/0]
    root 6 0.0 0.0 0 0 ? S< Nov09 0:00 [khelper]
    root 7 0.0 0.0 0 0 ? S< Nov09 0:00 [kthread]
    root 9 0.0 0.0 0 0 ? S< Nov09 0:00 [xenwatch]
    root 10 0.0 0.0 0 0 ? S< Nov09 0:00 [xenbus]
    root 17 0.0 0.0 0 0 ? S< Nov09 0:00 [kblockd/0]
    root 20 0.0 0.0 0 0 ? S< Nov09 0:00 [kseriod]
    root 66 0.0 0.0 0 0 ? S Nov09 0:00 [pdflush]
    root 67 0.0 0.0 0 0 ? S Nov09 0:00 [pdflush]
    root 68 0.0 0.0 0 0 ? S< Nov09 0:00 [kswapd0]
    root 69 0.0 0.0 0 0 ? S< Nov09 0:00 [aio/0]
    root 696 0.0 0.0 0 0 ? S< Nov09 0:00 [kpsmoused]
    root 854 0.0 0.1 2328 644 ? S<s Nov09 0:00 /sbin/udevd --d
    root 1963 0.0 0.1 1700 520 tty4 Ss+ Nov09 0:00 /sbin/getty 384
    root 1964 0.0 0.1 1704 524 tty5 Ss+ Nov09 0:00 /sbin/getty 384
    root 1967 0.0 0.1 1704 524 tty2 Ss+ Nov09 0:00 /sbin/getty 384
    root 1968 0.0 0.1 1704 524 tty3 Ss+ Nov09 0:00 /sbin/getty 384
    root 1969 0.0 0.3 2784 1204 tty1 Ss Nov09 0:00 /bin/login --
    root 1971 0.0 0.1 1700 520 tty6 Ss+ Nov09 0:00 /sbin/getty 384
    root 2026 0.0 0.1 1844 540 ? S Nov09 0:00 /bin/dd bs 1 if
    klog 2028 0.0 0.1 1700 412 ? Ss Nov09 0:00 /sbin/klogd -P
    root 2049 0.0 0.2 5288 1000 ? Ss Nov09 0:04 /usr/sbin/sshd
    daemon 2073 0.0 0.1 1972 436 ? Ss Nov09 0:00 /usr/sbin/atd
    root 2086 0.0 0.2 2344 908 ? Ss Nov09 0:00 /usr/sbin/cron
    root 2111 0.0 0.4 4188 1780 tty1 S+ Nov09 0:00 -bash
    proftpd 18723 0.0 0.3 9380 1516 ? Ss Nov16 0:00 proftpd: (accep
    ntp 18862 0.0 0.3 4116 1236 ? Ss Nov16 0:00 /usr/sbin/ntpd
    root 23926 73.6 0.1 1764 548 ? R Nov17 7168:26 /bin/sh /usr/b
    root 25448 0.0 0.1 7464 756 ? Ss Nov18 0:00 /usr/sbin/sasla
    root 25449 0.0 0.1 7464 484 ? S Nov18 0:00 /usr/sbin/sasla
    root 25450 0.0 0.0 7464 368 ? S Nov18 0:00 /usr/sbin/sasla
    root 25451 0.0 0.0 7464 368 ? S Nov18 0:00 /usr/sbin/sasla
    root 25452 0.0 0.0 7464 368 ? S Nov18 0:00 /usr/sbin/sasla
    syslog 29864 0.0 0.1 1920 724 ? Ss Nov19 0:01 /sbin/syslogd -
    bind 29885 0.0 2.2 36856 8904 ? Ssl Nov19 0:00 /usr/sbin/named
    root 23384 0.0 0.3 3876 1388 ? S Nov19 0:00 /bin/sh /usr/bi
    mysql 23421 0.0 5.1 128844 20076 ? Sl Nov19 0:17 /usr/sbin/mysql
    root 23422 0.0 0.1 2900 696 ? S Nov19 0:00 logger -p daemo
    list 22663 0.0 1.2 9792 4984 ? Ss Nov20 0:00 /usr/bin/python
    list 22666 0.0 1.6 9372 6412 ? S Nov20 0:00 /usr/bin/python
    list 22667 0.0 1.6 9492 6412 ? S Nov20 0:00 /usr/bin/python
    list 22668 0.0 1.6 9492 6404 ? S Nov20 0:00 /usr/bin/python
    list 22669 0.0 1.6 9500 6412 ? S Nov20 0:00 /usr/bin/python
    list 22670 0.0 1.6 9492 6444 ? S Nov20 0:00 /usr/bin/python
    list 22671 0.0 1.7 9804 6784 ? S Nov20 0:00 /usr/bin/python
    list 22673 0.0 1.6 9500 6592 ? S Nov20 0:00 /usr/bin/python
    list 22674 0.0 1.6 9500 6408 ? S Nov20 0:00 /usr/bin/python
    root 2232 0.0 3.8 42284 15056 ? Ss Nov23 0:00 /usr/sbin/apach
    www-data 4439 0.0 5.2 49520 20804 ? S Nov23 0:05 /usr/sbin/apach
    www-data 4441 0.0 5.1 49268 20420 ? S Nov23 0:04 /usr/sbin/apach
    www-data 4443 0.0 4.8 49056 18904 ? S Nov23 0:03 /usr/sbin/apach
    www-data 8162 0.0 5.2 49504 20636 ? S Nov23 0:03 /usr/sbin/apach
    www-data 8163 0.0 5.2 49240 20620 ? S Nov23 0:03 /usr/sbin/apach
    www-data 8164 0.0 4.0 46284 15908 ? S Nov23 0:03 /usr/sbin/apach
    www-data 8166 0.0 5.1 49224 20140 ? S Nov23 0:03 /usr/sbin/apach
    root 8547 0.0 0.1 1876 440 ? S Nov23 0:00 /usr/sbin/couri
    root 8548 0.0 0.2 4396 1080 ? S Nov23 0:00 /usr/lib/courie
    root 8549 0.0 0.3 4440 1292 ? S Nov23 0:00 /usr/lib/courie
    root 8552 0.0 0.0 4396 376 ? S Nov23 0:00 /usr/lib/courie
    root 8553 0.0 0.0 4396 376 ? S Nov23 0:00 /usr/lib/courie
    root 8554 0.0 0.3 4440 1292 ? S Nov23 0:00 /usr/lib/courie
    root 8555 0.0 0.3 4440 1292 ? S Nov23 0:00 /usr/lib/courie
    root 8622 0.0 0.0 1872 356 ? S Nov23 0:00 /usr/sbin/couri
    root 8623 0.0 0.1 1976 592 ? S Nov23 0:00 /usr/sbin/couri
    root 8653 0.0 0.1 1980 556 ? S Nov23 0:00 /usr/sbin/couri
    root 8657 0.0 0.1 1876 528 ? S Nov23 0:00 /usr/sbin/couri
    postgrey 8901 0.0 2.0 12072 7960 ? Ss Nov23 0:00 /usr/sbin/postg
    root 9033 0.0 0.0 1876 360 ? S Nov23 0:00 /usr/sbin/couri
    root 9034 0.0 0.1 1976 596 ? S Nov23 0:00 /usr/sbin/couri
    root 9537 0.0 0.4 5336 1692 ? Ss Nov23 0:00 /usr/lib/postfi
    postfix 9538 0.0 0.4 5376 1644 ? S Nov23 0:00 qmgr -l -t fifo
    www-data 13626 0.0 4.2 47728 16688 ? S 05:09 0:01 /usr/sbin/apach
    www-data 14825 0.0 4.3 48492 17268 ? S 11:42 0:00 /usr/sbin/apach
    www-data 14850 0.0 3.9 46944 15496 ? S 11:51 0:00 /usr/sbin/apach
    postfix 15313 0.0 0.4 5344 1636 ? S 14:08 0:00 pickup -l -t fi
    root 15342 0.1 0.6 8044 2456 ? Ss 14:14 0:00 sshd: [email protected]/
    root 15344 0.1 0.4 4236 1832 pts/0 Ss 14:15 0:00 -bash
    root 15359 0.0 0.2 2628 1012 pts/0 R+ 14:15 0:00 ps aux


    Hope this helps the other output will follow

    Stuart
     
  6. SJamG

    SJamG New Member

    Here is the output from Netstat -a

    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address Foreign Address State
    tcp 0 0 localhost:60000 *:* LISTEN
    tcp 0 0 localhost:mysql *:* LISTEN
    tcp 0 0 *:www *:* LISTEN
    tcp 0 0 www.accommodate-:domain *:* LISTEN
    tcp 0 0 www.accommodate-:domain *:* LISTEN
    tcp 0 0 localhost:domain *:* LISTEN
    tcp 0 0 *:ftp *:* LISTEN
    tcp 0 0 *:smtp *:* LISTEN
    tcp 0 0 localhost:953 *:* LISTEN
    tcp 0 0 *:https *:* LISTEN
    tcp 7 0 www.accommodate-ed:smtp smtpoutm.mac.com:53000 CLOSE_WAIT
    tcp 1 0 www.accommodate-ed:smtp smtpoutm.mac.com:64072 CLOSE_WAIT
    tcp 1 0 www.accommodate-ed:smtp smtpoutm.mac.com:62602 CLOSE_WAIT
    tcp 7 0 www.accommodate-ed:smtp smtpoutm.mac.com:52778 CLOSE_WAIT
    tcp 0 0 www.accommodate-edi:www rrcs-71-43-140-19:33225 TIME_WAIT
    tcp 7 0 www.accommodate-ed:smtp smtpoutm.mac.com:61454 CLOSE_WAIT
    tcp 7 0 www.accommodate-ed:smtp smtpoutm.mac.com:64673 CLOSE_WAIT
    tcp 7 0 www.accommodate-ed:smtp smtpoutm.mac.com:63777 CLOSE_WAIT
    tcp 7 0 www.accommodate-ed:smtp smtpoutm.mac.com:61505 CLOSE_WAIT
    tcp 7 0 www.accommodate-ed:smtp smtpoutm.mac.com:57888 CLOSE_WAIT
    tcp 7 0 www.accommodate-ed:smtp smtpoutm.mac.com:56261 CLOSE_WAIT
    tcp 1 0 www.accommodate-ed:smtp smtpoutm.mac.com:56933 CLOSE_WAIT
    tcp 1 0 www.accommodate-ed:smtp smtpoutm.mac.com:53892 CLOSE_WAIT
    tcp 1 0 www.accommodate-ed:smtp smtpoutm.mac.com:54052 CLOSE_WAIT
    tcp 7 0 www.accommodate-ed:smtp smtpoutm.mac.com:51748 CLOSE_WAIT
    tcp 7 0 www.accommodate-ed:smtp smtpoutm.mac.com:63143 CLOSE_WAIT
    tcp 7 0 www.accommodate-ed:smtp smtpoutm.mac.com:63655 CLOSE_WAIT
    tcp 1 0 www.accommodate-ed:smtp smtpoutm.mac.com:61511 CLOSE_WAIT
    tcp 1 0 www.accommodate-ed:smtp smtpoutm.mac.com:53318 CLOSE_WAIT
    tcp 1 0 www.accommodate-ed:smtp smtpoutm.mac.com:58214 CLOSE_WAIT
    tcp 7 0 www.accommodate-ed:smtp smtpoutm.mac.com:61817 CLOSE_WAIT
    tcp 7 0 www.accommodate-ed:smtp smtpoutm.mac.com:52152 CLOSE_WAIT
    tcp 1 0 www.accommodate-ed:smtp smtpoutm.mac.com:62139 CLOSE_WAIT
    tcp 7 0 www.accommodate-ed:smtp smtpoutm.mac.com:64989 CLOSE_WAIT
    tcp 1 0 www.accommodate-ed:smtp smtpoutm.mac.com:54620 CLOSE_WAIT
    tcp 1 0 www.accommodate-ed:smtp smtpoutm.mac.com:54078 CLOSE_WAIT
    tcp 7 0 www.accommodate-ed:smtp smtpoutm.mac.com:53136 CLOSE_WAIT
    tcp 7 0 www.accommodate-ed:smtp smtpoutm.mac.com:58867 CLOSE_WAIT
    tcp 7 0 www.accommodate-ed:smtp smtpoutm.mac.com:51411 CLOSE_WAIT
    tcp 7 0 www.accommodate-ed:smtp smtpoutm.mac.com:51860 CLOSE_WAIT
    tcp 0 0 www.accommodate-edi:www rrcs-71-43-140-19:33073 FIN_WAIT2
    tcp 7 0 www.accommodate-ed:smtp smtpoutm.mac.com:62580 CLOSE_WAIT
    tcp 7 0 www.accommodate-ed:smtp smtpoutm.mac.com:54487 CLOSE_WAIT
    tcp 1 0 www.accommodate-ed:smtp smtpoutm.mac.com:59159 CLOSE_WAIT
    tcp 7 0 www.accommodate-ed:smtp smtpoutm.mac.com:49558 CLOSE_WAIT
    tcp6 0 0 *:imaps *:* LISTEN
    tcp6 0 0 *:pop3 *:* LISTEN
    tcp6 0 0 *:imap2 *:* LISTEN
    tcp6 0 0 *:domain *:* LISTEN
    tcp6 0 0 *:ssh *:* LISTEN
    tcp6 0 0 *:smtp *:* LISTEN
    tcp6 0 0 ip6-localhost:953 *:* LISTEN
    tcp6 0 6072 www.accommodate-edi:ssh 88-106-118-232.dyn:1283 ESTABLISHED
    udp 0 0 www.accommodate-:domain *:*
    udp 0 0 www.accommodate-:domain *:*
    udp 0 0 localhost:domain *:*
    udp 0 0 *:33396 *:*
    udp 0 0 www.accommodate-edi:ntp *:*
    udp 0 0 www.accommodate-edi:ntp *:*
    udp 0 0 localhost:ntp *:*
    udp 0 0 *:ntp *:*
    udp6 0 0 *:domain *:*
    udp6 0 0 *:33397 *:*
    udp6 0 0 fe80::216:3eff:fe00:ntp *:*
    udp6 0 0 ip6-localhost:ntp *:*
    udp6 0 0 *:ntp *:*
    Active UNIX domain sockets (servers and established)
    Proto RefCnt Flags Type State I-Node Path
    unix 2 [ ] DGRAM 855 @/com/ubuntu/upstart
    unix 2 [ ACC ] STREAM LISTENING 814668 public/cleanup
    unix 2 [ ACC ] STREAM LISTENING 814675 private/tlsmgr
    unix 2 [ ACC ] STREAM LISTENING 159317 /var/run/proftpd/proftpd.sock
    unix 2 [ ACC ] STREAM LISTENING 814679 private/rewrite
    unix 2 [ ACC ] STREAM LISTENING 814683 private/bounce
    unix 2 [ ] DGRAM 1087 @/org/kernel/udev/udevd
    unix 2 [ ACC ] STREAM LISTENING 814687 private/defer
    unix 2 [ ACC ] STREAM LISTENING 814691 private/trace
    unix 2 [ ACC ] STREAM LISTENING 814695 private/verify
    unix 2 [ ACC ] STREAM LISTENING 814699 public/flush
    unix 2 [ ACC ] STREAM LISTENING 814703 private/proxymap
    unix 2 [ ACC ] STREAM LISTENING 814707 private/smtp
    unix 2 [ ACC ] STREAM LISTENING 814711 private/relay
    unix 2 [ ACC ] STREAM LISTENING 814715 public/showq
    unix 2 [ ACC ] STREAM LISTENING 814719 private/error
    unix 2 [ ACC ] STREAM LISTENING 814723 private/retry
    unix 2 [ ACC ] STREAM LISTENING 814727 private/discard
    unix 2 [ ACC ] STREAM LISTENING 814731 private/local
    unix 2 [ ACC ] STREAM LISTENING 814735 private/virtual
    unix 2 [ ACC ] STREAM LISTENING 814739 private/lmtp
    unix 2 [ ACC ] STREAM LISTENING 814743 private/anvil
    unix 2 [ ACC ] STREAM LISTENING 814747 private/scache
    unix 2 [ ACC ] STREAM LISTENING 814751 private/maildrop
    unix 2 [ ACC ] STREAM LISTENING 814755 private/uucp
    unix 2 [ ACC ] STREAM LISTENING 814759 private/ifmail
    unix 2 [ ACC ] STREAM LISTENING 814763 private/bsmtp
    unix 2 [ ACC ] STREAM LISTENING 814767 private/scalemail-backend
    unix 2 [ ACC ] STREAM LISTENING 814771 private/mailman
    unix 2 [ ACC ] STREAM LISTENING 221390

    Hope this help you diagnose what may be the problem - really appreciate the help!

    Stuart
     
  7. falko

    falko Super Moderator ISPConfig Developer

    Are there any errors in your mail log?
     
  8. SJamG

    SJamG New Member

    Hi,

    Thanks for your post, how do i Open the mail log?

    I will post it, if it helps. Another thing, I dont even know if i have a user created, i have read about maildir, should i look into this?

    Thanks

    Stuart
     
  9. SJamG

    SJamG New Member

    Not sure if this is the right log file :


    [email protected]:/# cd var
    [email protected]:/var# cd log
    [email protected]:/var/log# vi mail.log
    Nov 25 06:25:37 www postfix/cleanup[19818]: fatal: dict_open: unsupported dictionary type: mysql: Is the postfix-mysql package installed?
    Nov 25 06:25:37 www postfix/smtpd[19817]: fatal: dict_open: unsupported dictionary type: mysql: Is the postfix-mysql package installed?
    Nov 25 06:25:38 www postfix/master[9537]: warning: process /usr/lib/postfix/cleanup pid 19818 exit status 1
    Nov 25 06:25:38 www postfix/master[9537]: warning: /usr/lib/postfix/cleanup: bad command startup -- throttling
    Nov 25 06:25:38 www postfix/master[9537]: warning: process /usr/lib/postfix/smtpd pid 19817 exit status 1
    Nov 25 06:25:38 www postfix/master[9537]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
    Nov 25 06:26:38 www postfix/cleanup[19821]: fatal: dict_open: unsupported dictionary type: mysql: Is the postfix-mysql package installed?
    Nov 25 06:26:38 www postfix/smtpd[19820]: fatal: dict_open: unsupported dictionary type: mysql: Is the postfix-mysql package installed?
    Nov 25 06:26:39 www postfix/master[9537]: warning: process /usr/lib/postfix/cleanup pid 19821 exit status 1
    Nov 25 06:26:39 www postfix/master[9537]: warning: /usr/lib/postfix/cleanup: bad command startup -- throttling
    Nov 25 06:26:39 www postfix/master[9537]: warning: process /usr/lib/postfix/smtpd pid 19820 exit status 1
    @
    "mail.log" 65808 lines, 6500272 characters

    Hope it helps.

    Stuart
     
  10. falko

    falko Super Moderator ISPConfig Developer

    Did you install the postfix-mysql package? Which tutorial exactly (URL) did you follow? Because in the "Perfect Setup", there's no postfix-mysql package. Did you maybe follow one of the "Virtual Users And domains With Postfix...) tutorials?
     

Share This Page