Page 10 of 20 FirstFirst ... 89101112 ... LastLast
Results 91 to 100 of 192

Thread: Howto: setup a mail server in Ubuntu

  1. #91
    Join Date
    Jun 2005
    Beans
    9
    Distro
    Ubuntu Breezy 5.10

    Re: Howto: setup a mail server in Ubuntu

    Hi,

    another remark on your great how-to (I still did not have the time to complete the installation). On the SquirrelMail/Apache2 section, you wrote:
    Code:
    ln -s /etc/apache2/sites-available/webmail /etc/apache2/sites-enabled/810-webmail
    I think the prefered way to enable and disable sites is to use the following commands:
    • a2ensite
    • a2dissite

    and that's the same for modules : a2enmod/a2dismod

    here is a reference page with all the explanations: http://www.debian-administration.org/articles/207

  2. #92
    Join Date
    Nov 2005
    Location
    Chicago, IL
    Beans
    9
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Howto: setup a mail server in Ubuntu

    Ok, well I got my MYSQL database working, but I still can't log into my server... every time I put in my username/pass I get "Login to server xxx.xxx.xxx failed"

    Any ideas as to what might not be working?

  3. #93
    Join Date
    Apr 2005
    Location
    Oslo
    Beans
    121

    Re: Howto: setup a mail server in Ubuntu

    Quote Originally Posted by Tsurara
    Ok, well I got my MYSQL database working, but I still can't log into my server... every time I put in my username/pass I get "Login to server xxx.xxx.xxx failed"

    Any ideas as to what might not be working?
    Does the log output the correct username: eg yourname@yourdomain.com and password?

    If so then what does the sql log say?
    Cheers,
    Ivar (flurdy.com)

  4. #94
    Join Date
    Nov 2005
    Location
    Chicago, IL
    Beans
    9
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Howto: setup a mail server in Ubuntu

    Quote Originally Posted by flurdy
    Does the log output the correct username: eg yourname@yourdomain.com and password?

    If so then what does the sql log say?
    EDIT: Ok, answered my own question, I think I have got imap working Thanks!

    Ok new issue though, when I try to send myself mail I get this:

    Code:
    Nov 23 11:59:21 localhost postfix/smtpd[11950]: connect from zproxy.gmail.com
    Nov 23 11:59:24 localhost postfix/smtpd[11950]: NOQUEUE: reject: RCPT from zproxy.gmail.com: 554 <tsurara@tsuraradomain.com>: Relay access denied; from=<myotheremail@gmail.com> to=<tsurara@tsuraradomain.com> proto=ESMTP helo=<zproxy.gmail.com>
    Nov 23 11:59:24 localhost postfix/smtpd[11950]: disconnect from zproxy.gmail.com
    Any ideas?
    Last edited by Tsurara; November 23rd, 2005 at 06:11 PM.

  5. #95
    Join Date
    Nov 2005
    Beans
    4

    Re: Howto: setup a mail server in Ubuntu

    Hi
    I'm getting this mistake on my server. This occurs when I try to login via squirrelmail.
    It' seems that postfix isn't creating the subdirectories for users.
    I tried to make them manually but I had another kind of problems

    Code:
    root@webserver:/var/spool/mail/virtual #    ls
    test
    root@webserver:/var/spool/mail/virtual #
    ("test" it's the folder i've created manually).

    Code:
    Nov 23 16:22:38 webserver imaplogin: authdaemon: ACCEPT, username pcolomes@electrored.net
    Nov 23 16:22:38 webserver imaplogin: chdir /var/spool/mail/virtual/pcolomes/: No such file or directory
    Off course I have added pcolomes to mysql database

    How do I fix this? I would like to know what part of the config files is the one who creates the folders on the system?
    I'm really desperated.
    Thanks

  6. #96
    Join Date
    Jun 2005
    Beans
    9
    Distro
    Ubuntu Breezy 5.10

    Re: Howto: setup a mail server in Ubuntu

    Quote Originally Posted by pcolomes
    It' seems that postfix isn't creating the subdirectories for users. I tried to make them manually but I had another kind of problems

    [...]

    How do I fix this? I would like to know what part of the config files is the one who creates the folders on the system?
    Did you use mkdir or maildirmake to create users sub directories ?
    Have a look at this post.

    Even if maildirmake is not recommended by the howto author, it does the trick for me and I still did not find why postfix would not create them on my machine. postfix seems well configured. I can post my main.cf if someone would help finding the error.

  7. #97
    Join Date
    Nov 2005
    Beans
    4

    Re: Howto: setup a mail server in Ubuntu

    Ok Now I've found how to deal with the NON-WORKING directories.
    As I was reading somewhere, then someone said when the first mail it's received then postfix will automatically create subfolders.

    I tried sending from my gmail account but nothing happened
    So I had to send myself mails to all accounts I've created in the users database.

    run in console window as root (sudo su)
    - tail -f /var/log/mail.info
    then in another console window run
    - sudo telnet -d 127.0.0.1 25 [ -d option will activate debug ]
    mail from: <ANYUSER@YOURDOMAIN.COM> [it has to be your domain, otherwise it will not work. also it wont work using @localhost]
    - rcpt to: <USER1@YOURDOMAIN.COM> [here write the 1st email address you want to "activate". for example: info@hello.com]
    - data
    - write anything lalalal lalala lalala [press Intro to next line and write a dot "." to finish data]
    - .
    - ok queued as xxxxxxx

    repeat this process with all users on your database. What a mess uh? I haven't found another way to it.

  8. #98
    Join Date
    Jun 2005
    Beans
    9
    Distro
    Ubuntu Breezy 5.10

    Re: Howto: setup a mail server in Ubuntu

    Quote Originally Posted by pcolomes
    Ok Now I've found how to deal with the NON-WORKING directories.
    [...]
    repeat this process with all users on your database. What a mess uh? I haven't found another way to it.
    Using maildirmake does the trick for me and it's much more simpler. But It's nice that you finally find a solution that fits for you

  9. #99
    Join Date
    Nov 2005
    Beans
    4

    Question Re: Howto: setup a mail server in Ubuntu

    First, sorry for this extensive post, and thanks for anyone who answers it

    Ok, I have solved the first problem but I have 3 more things wich are making me little sick.
    The first is a squirrelmail config problem (it seems to). I have configured all ok runing conf.pl script. Everything works ok except language. I need to change it to SPANISH. Ok, so on config menu I select language option es_CL (CL from Chile)

    Code:
    SquirrelMail Configuration : Read: config.php (1.4.0)
    ---------------------------------------------------------
    Language preferences
    1.  Default Language       : es_CL
    2.  Default Charset        : UTF-8
    3.  Enable lossy encoding  : false
    
    R   Return to Main Menu
    C   Turn color on
    S   Save data
    Q   Quit
    
    Command >>
    after that I run l /usr/sbin/locale-gen to generate the squirrelmail locales language files.
    Code:
    root@webserver:/ # locale-gen
    Generating locales...
      es_CL.UTF-8... done
      en_DK.UTF-8... done
      es_ES.UTF-8... done
      es_US.UTF-8... done
      es_CL.ISO-8859-1... done
      en_GB.ISO-8859-1... done
      en_GB.ISO-8859-15... done
      en_US.ISO-8859-1... done
      en_US.ISO-8859-15... done
      es_ES.ISO-8859-1... done
      es_ES.UTF-8@euro... done
      es_US.ISO-8859-1... done
    Generation complete.
    root@webserver:/ #
    and restart apache.
    After this I could change english language to spanish but when I enter squirrelmail (http://host/src/login.php) and I select options - display preferences - language I can see just the main window is in new language and the left_main.php still is in english.
    So, if I try to send email just after press SEND button, squirrelmail interface changes to spanish, and if I press SEND again it returns to english.
    Why is this happening?

    so, problem number 2) sending and receving mail from web interface seems ok. But when I try to use outlook (for example) from another network I can email only to my domain mailboxes (mail@domain.net, pcolomes@domain.net, admin@domain.net etc). Every mail i send via mail client returns with the message: Denied Relay
    So on my mail.warn this is appearing constantly
    Code:
    Nov 25 16:26:53 webserver postfix/smtpd[5896]: warning: smtpd_sasl_auth_enable is true, but SASL support is not compiled in
    Nov 25 16:26:54 webserver postfix/smtpd[5896]: warning: restriction `permit_sasl_authenticated' ignored: no SASL support
    I have to say have followed step by step 4 times all the HowTO but still cannot make it run.
    "smtpd_sasl_auth_enable is true, but SASL support is not compiled in" --> How can i make SASL be compiled to run with postfix? I have installed the following packages with apt-get install (before it, i've upgraded the repositories)
    Code:
          postfix
          postfix-mysql
          postfix-tls
          libsasl2
          libsasl2-modules
          libsasl-modules-plain
          libsasl2-modules-sql
          libsasl7
          libauthen-sasl-perl
         libauthen-sasl-cyrus-perl
    Note: /etc/postfix/sasl/smtpd.conf, /etc/postfix/main.cf, /etc/postfix/master.cf are written exactly as this howto: http://flurdy.com/docs/postfix/
    Even so I can't use my mailserver from outside because SASL authentication isn't working..
    -----------

    And the last problem/question is about MX records in DNS zone.
    mail.warn:
    Code:
    Nov 25 16:40:01 webserver postfix/smtp[6210]: warning: no MX host for mail.domain.net has a valid A record
    Nov 25 16:40:02 webserver postfix/smtp[6210]: warning: no MX host for mail.domain.net has a valid A record
    (domain.net it's fake, )

    dig my domain:
    Code:
    root@webserver:/ # dig mail.domain.net
    
    ; <<>> DiG 9.2.4 <<>> mail.domain.net
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 47774
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2
    
    ;; QUESTION SECTION:
    ;mail.domain.net.           IN      A
    
    ;; ANSWER SECTION:
    mail.domain.net.    166263  IN      A       200.55.215.62
    
    ;; AUTHORITY SECTION:
    domain.net.         155889  IN      NS      dns1.XXX.com.
    domain.net.         155889  IN      NS      dns2.XXX.com.
    
    ;; ADDITIONAL SECTION:
    dns1.XXX.com.     148958  IN      A       213.229.XXX.XXX
    dns2.XXX.com.     148958  IN      A       195.160.XXX.XXX
    
    ;; Query time: 24 msec
    ;; SERVER: 200.75.0.4#53(200.75.0.4)
    ;; WHEN: Fri Nov 25 17:17:07 2005
    ;; MSG SIZE  rcvd: 136
    
    root@webserver:/ #
    and my dns zone file says this:
    Code:
    mail  	   	IN  	A  	200.55.215.62
    @  	   	IN  	MX  	10 mail.domain.net.
    mail  	   	IN  	MX  	10 mail.domain.net.
    Is this right MX record config? if doesn't, how must I write my MX records?

    Sorry for extense but I've been more than 4 days working on this and nothing !
    Any help would be apreciated
    Last edited by pcolomes; November 25th, 2005 at 09:28 PM.

  10. #100
    Join Date
    Nov 2005
    Beans
    4

    Re: Howto: setup a mail server in Ubuntu

    OK, i have answered myself again jejeje
    the problem I had with SASL was HALF-solved by reinstalling postfix-tls package
    I say HALF-solved because now i've eliminated the SASL warning but still I'm getting this:
    Code:
    Nov 25 17:46:52 webserver postfix/smtpd[7738]: connect from inet.electrored.net[200.55.215.61]
    Nov 25 17:46:52 webserver postfix/smtpd[7738]: NOQUEUE: reject: RCPT from inet.electrored.net[200.55.215.61]: 554 <xxx@codiner.cl>: Relay access denied; from=<xxx@electrored.net> to=<xxx@codiner.cl> proto=ESMTP helo=<PAULO>
    Nov 25 17:46:54 webserver postfix/smtpd[7738]: disconnect from inet.electrored.net[200.55.215.61]

Page 10 of 20 FirstFirst ... 89101112 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •