Page 13 of 20 FirstFirst ... 31112131415 ... LastLast
Results 121 to 130 of 192

Thread: Howto: setup a mail server in Ubuntu

  1. #121
    Join Date
    Jan 2008
    Beans
    3

    Re: Howto: setup a mail server in Ubuntu

    Hi!

    I'm hoping someone here can help me out... I've been trying to put up a mail server by following this guide. However, it doesn't work It doesn't seem to be able to connect to the database when I try to send emails by telnet...

    I get the following in my mysql.log:
    080212 0:52:18 243 Connect mail@localhost on maildb
    243 Query SELECT destination FROM aliases WHERE mail='hotmail.com' and enabled = 1
    244 Connect mail@localhost on maildb
    244 Query SELECT domain FROM domains WHERE domain='hotmail.com' and enabled = 1
    080212 0:52:58 243 Query SELECT destination FROM aliases WHERE mail='testingdomain.com' and enabled = 1
    244 Query SELECT domain FROM domains WHERE domain='testingdomain.com' and enabled = 1
    245 Connect mail@localhost on maildb
    245 Query SELECT destination FROM aliases WHERE mail='test@testingdomain.com' and enabled = 1
    246 Connect mail@localhost on maildb
    246 Query SELECT destination FROM aliases WHERE mail='test@testingdomain.com' and enabled = 1
    080212 0:53:13 243 Query SELECT destination FROM aliases WHERE mail='testingdomain.com' and enabled = 1
    244 Query SELECT domain FROM domains WHERE domain='testingdomain.com' and enabled = 1
    247 Connect Access denied for user 'mail'@'localhost' (using password: YES)


    And my mail.log looks like this:
    Feb 12 00:51:22 tremor postfix/smtpd[17806]: connect from mycomputer.mydomain.com[xxx.xx.xxx.xxx]
    Feb 12 00:52:58 tremor postfix/smtpd[17806]: warning: restriction `my_networks' after `permit' is ignored
    Feb 12 00:52:58 tremor postfix/smtpd[17806]: BD58398FC5: client=mycomputer.mydomain.com[xxx.xx.xxx.xxx]
    Feb 12 00:53:13 tremor postfix/cleanup[17809]: BD58398FC5: message-id=<20080211235258.BD58398FC5@thiscomputer.mydomai n.com>
    Feb 12 00:53:13 tremor postfix/qmgr[17805]: BD58398FC5: from=<xxx@hotmail.com>, size=407, nrcpt=1 (queue active)
    Feb 12 00:53:13 tremor postfix/virtual[17811]: warning: connect to mysql server 127.0.0.1: Access denied for user 'mail'@'localhost' (using password: YES)
    Feb 12 00:53:13 tremor postfix/virtual[17811]: warning: table virtual_mailbox_maps: lookup test@testingdomain.com: Success
    Feb 12 00:53:13 tremor postfix/virtual[17811]: BD58398FC5: to=<test@testingdomain.com>, relay=virtual, delay=55, delays=55/0.01/0/0.02, dsn=4.3.5, status=deferred (mail system configuration error)


    Here's my main.cf:
    smtpd_banner = $myhostname ESMTP $mail_name
    biff = no
    append_dot_mydomain = no

    smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
    smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache

    myhostname = thiscomputer.mydomain.com
    myorigin = /etc/mailname
    relayhost =
    mynetworks = 127.0.0.0/8
    mailbox_size_limit = 0
    recipient_delimiter = +
    inet_interfaces = all

    mynetworks_style = host

    local_recipient_maps =
    mydestination =


    delay_warning_time = 1h
    unknown_local_recipient_reject_code = 450
    maximal_queue_lifetime = 7d
    minimal_backoff_time = 1000s
    maximal_backoff_time = 8000s

    smtp_helo_timeout = 60s
    smtpd_recipient_limit = 16
    smtpd_soft_error_limit = 3
    smtpd_hard_error_limit = 12


    smtpd_helo_restrictions = permit_mynetworks, warn_if_reject reject_non_fqdn_hostname, reject_invalid_hostname, permit
    smtpd_sender_restrictions = permit_mynetworks, reject_non_fqdn_sender, rejject_unknown_sender_domain, reject_unauth_pipelining, permit
    smtpd_client_restrictions =
    smtpd_recipient_restrictions = reject_unauth_pipelining, permit my_networks, reject_non_fqdn_recipient, reject_unknown_recipient_domain, reject_unauth_destination, permit

    smtpd_delay_reject = yes
    disable_vrfy_command = yes

    alias_maps = hash:/etc/postfix/aliases
    alias_database = hash:/etc/postfix/aliases
    virtual_mailbox_base = /var/spool/mail/virtual
    virtual_mailbox_maps = mysql:/etc/postfix/mysql_mailbox.cf
    virtual_uid_maps = mysql:/etc/postfix/mysql_uid.cf
    virtual_gid_maps = mysql:/etc/postfix/mysql_gid.cf
    virtual_alias_maps = mysql:/etc/postfix/mysql_alias.cf
    virtual_mailbox_domains = mysql:/etc/postfix/mysql_domains.cf



    I hope someone could help me what I've done wrong here... I'm quite a newbie with Ubuntu so I'm not really sure what I should be looking for here...

    Thanks in advance...

    /P

  2. #122
    Join Date
    Mar 2007
    Location
    /usr/sbin/mysqld
    Beans
    89
    Distro
    Ubuntu 10.04 Lucid Lynx

    Talking Re: Howto: setup a mail server in Ubuntu

    mirror for flurdy.com/docs/postfix/


    http://www.scribd.com/doc/2218859/Ho...U-Linux-system
    xList Tracker
    made on Ubuntu Lucid Lynx

  3. #123
    Join Date
    Jun 2007
    Location
    California
    Beans
    15
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Howto: setup a mail server in Ubuntu

    Some time back I started moving our mail server off an OS X system over to our new Ubuntu server. I had someone helping me but then I got pulled off the project for some important client work.

    I could REALLY use some help in finishing this system. The original person who was helping isn't available now and I don't remember all the details of what he was doing.

    The system that's partly set up is:

    postfix
    amavis-new
    clamd
    spamassassin
    dovecot

    It probably won't take much to finish it, we were working on setting up the config files at the time.

  4. #124
    Join Date
    Feb 2008
    Beans
    1

    Re: Howto: setup a mail server in Ubuntu

    Hi Flurdy,

    Yesterday, I was able to go to http://flurdy.com/docs/postfix/ and I was able to access the site, however today it is gone. I was wondering if you were going to be setting it online again? I am running 6.06 (dapper) and I am in need of setting up a secure email server ASAP. It is definately going to be a challange and serious under taking for me. I was relying on your instructions.

    It seems to be the best tutorial around and it would be a shame if it was not up and running!

    Thanks,
    Damoose

  5. #125
    Join Date
    Sep 2007
    Beans
    31

    Re: Howto: setup a mail server in Ubuntu

    I too have noticed that the site has been up and down over the last few days or even weeks.

    One suggestion I have is to view the cached version at Google in the event that you cannot reach the live site. This helped save me about a week ago when I really needed the instructions.

  6. #126
    Join Date
    Apr 2005
    Location
    Oslo
    Beans
    121

    Wink Re: Howto: setup a mail server in Ubuntu

    Sorry the server has been up and down for awhile (power supply). Ive now moved flurdy.com to an amazon EC2 server, which should be a bit more reliant.

    Yes, the google cache version is one ive suggested to people whom contacted me while the site was down. So if it goes down again...
    Cheers,
    Ivar (flurdy.com)

  7. #127
    Join Date
    May 2008
    Beans
    7

    Angry Re: Howto: setup a mail server in Ubuntu (Squirrelmail) HELP!

    hey guys,

    i just finished setting up a web & mail server for my Lab.
    i use Squirrelmail for the webmail so that users can open their emails
    when they're not in Lab.

    everything works well but there's one problem still bugging me.
    i've problem with OPTIONS link in Squirrelmail.

    http://.../mail/src/options.php (wont open when i'm off campus) ???

    when i'm at my Lab (on site) and try to click the link it works well, but
    at home (off site) it doesn't work.

    i wonder what the problem is.

    if you guys experienced this before and know how to solve it please reply.

    cheers,

  8. #128
    Join Date
    Jul 2006
    Beans
    36

    Re: Howto: setup a mail server in Ubuntu (7th edition typo #1?)

    I've got this far...

    Configuration > Pop/IMAP (Courier)

    ...but I can't find...

    vi /etc/courier/authmysql
    Should that read "vi /etc/courier/authmysqlrc"

    Summary: Up to this point in the guide "/etc/courier/authmysql" can't be edited because it doesn't exist, but "/etc/courier/authmysqlrc" does.

    Thanks.
    Last edited by fade2gray; June 24th, 2008 at 01:06 PM.

  9. #129
    Join Date
    Jul 2006
    Beans
    36

    Re: Howto: setup a mail server in Ubuntu (7th edition typo #2?)

    I'm now at...

    Configuration > Content Checks (amivisd-new)

    cd /etc/amavis.d/conf.d
    Should that read "cd /etc/amavis/conf.d"?

    Summary: I can find the directory "/etc/amavis/conf.d", but not "/etc/amavis.d/conf.d".

    Edit: Also...

    vi /etc/spamassassin/local.rf
    ... should that read "vi /etc/spamassassin/local.cf"?

    Thanks.
    Last edited by fade2gray; June 24th, 2008 at 02:05 PM. Reason: addendum

  10. #130
    Join Date
    Jul 2006
    Beans
    36

    Re: Howto: setup a mail server in Ubuntu

    There seems to be a conflict at Configuration > Encryption (TLS) - where you are advised to "Please refer to previous edition for more detail", where you are told to enter...

    Code:
    smtps inet n - n - - smtpd
    ... into the master.cf file.

    Returning to Configuration > Encryption (TLS), you are told to enter...

    Code:
    smtps inet n - - - - smtpd
    Which is correct?

    Thanks.

Page 13 of 20 FirstFirst ... 31112131415 ... 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
  •