Set Up Ubuntu-Server 6.10 As A Firewall/Gateway Email Problem

Discussion in 'HOWTO-Related Questions' started by steveomach3ww, Jan 22, 2007.

  1. steveomach3ww

    steveomach3ww New Member

    I have just set up the "Set Up Ubuntu-Server 6.10 As A Firewall/Gateway" and i am having problems with my email server. First off i am not completely sure how to set a user active to recieve email or send them a welcome message to set them active and when i go to webmail i get this error when i try to log in ERROR: Connection dropped by IMAP server. but then again i am guess it is because i dont have an active user to log in with. Can someone tell me the process or adding a user and seting them active to recieve email. Thank You
     
  2. falko

    falko Super Moderator Howtoforge Staff

    If you create a new user you must send an email first to that user before you can log in with POP3 or IMAP. You can do this from an existing email account (e.g. your personal email address).
     
  3. steveomach3ww

    steveomach3ww New Member

    Email Problems

    Ok i created a new user called testemail1 and i went to my gamil account and sent him a test message and when i go into the postfix config in webmin i can see the message sitting in queue but it wont deliver it to that person. I am stumped at this point i am sure that it is somthing simple i just cant put my fingure on it.
     
  4. falko

    falko Super Moderator Howtoforge Staff

    What exactly is in the mail log when you send a mail to your server?
     
  5. steveomach3ww

    steveomach3ww New Member

    Email Log

    Jan 24 08:35:02 fireviper postfix/smtpd[10448]: connect from wr-out-0506.google.com[64.233.184.235]
    Jan 24 08:35:02 fireviper postfix/smtpd[10448]: 65EF5E44E3: client=wr-out-0506.google.com[64.233.184.235]
    Jan 24 08:35:02 fireviper postfix/cleanup[10472]: 65EF5E44E3: hold: header Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.235])??by fireviper (Postfix) with ESMTP id 65EF5E44E3??for <[email protected]>; Wed, 24 Jan 2007 08:35:02 -060 from wr-out-0506.google.com[64.233.184.235]; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<wr-out-0506.google.com>
    Jan 24 08:35:02 fireviper postfix/cleanup[10472]: 65EF5E44E3: message-id=<[email protected]>
    Jan 24 08:35:32 fireviper postfix/smtpd[10448]: disconnect from wr-out-0506.google.com[64.233.184.235]
     
  6. falko

    falko Super Moderator Howtoforge Staff

    The mail log looks ok. What's the output of
    Code:
    netstat -tap
    ? Do you use Maildir or mbox format?
     
  7. steveomach3ww

    steveomach3ww New Member

    Here is the output of that command


    tcp 0 0 localhost:mysql *:* LISTEN 5188/mysqld
    tcp 0 0 *:netbios-ssn *:* LISTEN 5479/smbd
    tcp 0 0 *:10000 *:* LISTEN 5802/perl
    tcp 0 0 *:munin *:* LISTEN 5671/munin-node
    tcp 0 0 *:domain *:* LISTEN 5090/dnsmasq
    tcp 0 0 *:smtp *:* LISTEN 10433/master
    tcp 0 0 localhost:953 *:* LISTEN 26263/named
    tcp 0 0 *:1723 *:* LISTEN 32112/pptpd
    tcp 0 0 *:microsoft-ds *:* LISTEN 5479/smbd
    tcp 0 0 192.168.2.1:1723 71-214-216-52.desm:xtel ESTABLISHED13924/pptpd [71.214
    tcp 0 0 192.168.2.1:1723 du-106-046.omnitel:1508 ESTABLISHED13522/pptpd [207.17
    tcp6 0 0 *:imaps *:* LISTEN 5323/couriertcpd
    tcp6 0 0 *:pop3s *:* LISTEN 5361/couriertcpd
    tcp6 0 0 *:pop3 *:* LISTEN 5340/couriertcpd
    tcp6 0 0 *:imap2 *:* LISTEN 5304/couriertcpd
    tcp6 0 0 *:www *:* LISTEN 32307/apache2
    tcp6 0 0 *:domain *:* LISTEN 5090/dnsmasq
    tcp6 0 0 *:ssh *:* LISTEN 14963/sshd
    tcp6 0 0 ip6-localhost:953 *:* LISTEN 26263/named
    tcp6 0 0 *:https *:* LISTEN 32307/apache2
    tcp6 0 0 fireviper:ssh ::ffff:192.168.2.6:2903 ESTABLISHED27926/sshd: steveo
    tcp6 0 296 ::ffff:192.168.2.1%:ssh ::ffff:192.168.2.9:1755 ESTABLISHED14973/sshd: steveo
    tcp6 0 0 fireviper:ssh ::ffff:192.168.2.6:1733 ESTABLISHED25943/sshd: steveo
     
  8. falko

    falko Super Moderator Howtoforge Staff

    What exactly do you see? Did you configure Postfix to deliver emails to Maildir?
     
  9. steveomach3ww

    steveomach3ww New Member

    Greetings I am going to post what the log shows for when i send mail to the server and also i am not for sure how to check if i have it setup to deliver mail to Maildir i belive that i do. Here is the log


    Jan 28 14:47:01 fireviper postfix/smtpd[4598]: connect from ug-out-1314.google.com[66.249.92.171]
    Jan 28 14:47:01 fireviper postfix/smtpd[4598]: DBC73E449E: client=ug-out-1314.google.com[66.249.92.171]
    Jan 28 14:47:02 fireviper postfix/cleanup[4603]: DBC73E449E: hold: header Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.171])??by fireviper.mach3ww.net (Postfix) with ESMTP id DBC73E449E??for <[email protected]>; Sun, 28 Jan 2007 14:47: from ug-out-1314.google.com[66.249.92.171]; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<ug-out-1314.google.com>
    Jan 28 14:47:02 fireviper postfix/cleanup[4603]: DBC73E449E: message-id=<[email protected]>
    Jan 28 14:47:32 fireviper postfix/smtpd[4598]: disconnect from ug-out-1314.google.com[66.249.92.171]
     
  10. falko

    falko Super Moderator Howtoforge Staff

    What's the output of
    Code:
    postqueue -p
    ?
     
  11. steveomach3ww

    steveomach3ww New Member

  12. falko

    falko Super Moderator Howtoforge Staff

    Please run
    Code:
    postsuper -r ALL
    and at the same time have a look at your mail log. Do you see any errors?
     
  13. steveomach3ww

    steveomach3ww New Member

    This is the out put of that command from the log.

    Jan 30 08:33:15 fireviper postfix/postsuper[26725]: Requeued: 2 messages
    Jan 30 08:33:31 fireviper postfix/pickup[25918]: E2C2AE44AB: uid=106 from=<[email protected]> orig_id=0BD6EE44AD
    Jan 30 08:33:31 fireviper postfix/cleanup[26726]: E2C2AE44AB: hold: header Received: by fireviper.mach3ww.net (Postfix, from userid 106)??id E2C2AE44AB; Tue, 30 Jan 2007 08:05:32 -0600 (CST) from ug-out-1314.google.com[66.249.92.172]; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<ug-out-1314.google.com>
    Jan 30 08:33:31 fireviper postfix/cleanup[26726]: E2C2AE44AB: message-id=<[email protected]>
    Jan 30 08:33:32 fireviper postfix/pickup[25918]: 03379E44AD: uid=106 from=<[email protected]> orig_id=34276E4492
    Jan 30 08:33:32 fireviper postfix/cleanup[26728]: 03379E44AD: hold: header Received: by fireviper.mach3ww.net (Postfix, from userid 106)??id 03379E44AD; Tue, 30 Jan 2007 08:05:32 -0600 (CST) from ug-out-1314.google.com[66.249.92.171]; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<ug-out-1314.google.com>
    Jan 30 08:33:32 fireviper postfix/cleanup[26728]: 03379E44AD: message-id=<[email protected]>
     
  14. falko

    falko Super Moderator Howtoforge Staff

    This is all I could find:
    http://archives.neohapsis.com/archives/postfix/2005-09/thread.html#81
    http://lists.mailscanner.info/pipermail/mailscanner/2005-January/044467.html
     

Share This Page