Mail server setup for LAN only (no Internet)

Hello,
I need a mail server on the solaris machine to send and receive messages vie local area network only.
I got me a script for zfs scrub which sends the status via Email - however the machine is not connected to the internet.
How can this be done?

Do you need this mail server just for the zfs scrub reports or for all e-mail? How are clients currently getting e-mail? If you already have a mail server inside the company, or if you already have hosted mail server for company e-mail, that should be sufficient.
If you do have an internal mail server, you should be able to set the DS parameter in sendmail.cf to specify the mail server. If you don't have an internal mail server, and you are all using external e-mail accounts, that should still work. By default, sendmail (if running) should be able to send e-mail outside the LAN. Sendmail uses DNS to locate the mail server for the recipient.
You can verify that dns is working on the client with nslookup or dig
-> nslookup -query=mx gmail.com
Server:          -------------
Address:     -------------
Non-authoritative answer:
gmail.com     mail exchanger = 5 gmail-smtp-in.l.google.com.
gmail.com     mail exchanger = 10 alt1.gmail-smtp-in.l.google.com.
gmail.com     mail exchanger = 20 alt2.gmail-smtp-in.l.google.com.
gmail.com     mail exchanger = 30 alt3.gmail-smtp-in.l.google.com.
gmail.com     mail exchanger = 40 alt4.gmail-smtp-in.l.google.com.
I don't know if Solaris 11 Express has a companion CD. Solaris 10 does- and you can MAYBE install packages from it. On OpenSolaris there is the /usr/bin/updatemanager and /usr/bin/packagemanager commands. I suspect Solaris 11 Express also has the same. On OpenSolaris you could download packages from the OpenSolaris internet repository. It MAY include the IMAP server. (it does not for the OpenSolaris server I have.)
Alternately, you could look for it on sunfreeware.com ( the Solaris 10 packages might work) or compile it from source.

Similar Messages

  • Mail server setup for LAN use only

    Hello,
    I want to use smtp-notify for alert mails.
    But I want to send these mails to LAN only - no internet connection is available.
    How do I set up a mail server on SOL11E (pop or imap)?
    The mails in /var/mail are just a simple file so I can't use them (like svccfg setnotify problem-diagnosed mailto:root@localhost )
    I want to have a system where I look into my Inbox of my locally connected client. So I will be automatically aware if something happened to the Sol11E system without looking into the log files or /var/mail manually.
    Thanks

    Do you need this mail server just for the zfs scrub reports or for all e-mail? How are clients currently getting e-mail? If you already have a mail server inside the company, or if you already have hosted mail server for company e-mail, that should be sufficient.
    If you do have an internal mail server, you should be able to set the DS parameter in sendmail.cf to specify the mail server. If you don't have an internal mail server, and you are all using external e-mail accounts, that should still work. By default, sendmail (if running) should be able to send e-mail outside the LAN. Sendmail uses DNS to locate the mail server for the recipient.
    You can verify that dns is working on the client with nslookup or dig
    -> nslookup -query=mx gmail.com
    Server:          -------------
    Address:     -------------
    Non-authoritative answer:
    gmail.com     mail exchanger = 5 gmail-smtp-in.l.google.com.
    gmail.com     mail exchanger = 10 alt1.gmail-smtp-in.l.google.com.
    gmail.com     mail exchanger = 20 alt2.gmail-smtp-in.l.google.com.
    gmail.com     mail exchanger = 30 alt3.gmail-smtp-in.l.google.com.
    gmail.com     mail exchanger = 40 alt4.gmail-smtp-in.l.google.com.
    I don't know if Solaris 11 Express has a companion CD. Solaris 10 does- and you can MAYBE install packages from it. On OpenSolaris there is the /usr/bin/updatemanager and /usr/bin/packagemanager commands. I suspect Solaris 11 Express also has the same. On OpenSolaris you could download packages from the OpenSolaris internet repository. It MAY include the IMAP server. (it does not for the OpenSolaris server I have.)
    Alternately, you could look for it on sunfreeware.com ( the Solaris 10 packages might work) or compile it from source.

  • Using a WRT54GS for LAN only, no internet conection

    Hi, new guy on the board.
    I bought a WRT54GS at garage sale, so have no manual or cd for it.
    I had an older commercial grade ethernet router that I used for setting up a LAN in my home for playing SOCOM, Navy SEALS on 4 different PS2s, each with their own tv. Worked great for a while, but then the commercial router died.
    So, how can I set up this WRT54GS as a LAN only configuration to continue playing SOCOM like I used to?

    Go to the Linksys support page and download the manual. There are also instructions for initial setup and for some router models there is even the setup wizard...

  • Help with DNS setup for LAN only

    I have a Mac Mini SNS 10.6.8 as our company's local standalone fileserver.
    Everything has ran great for the past year (still is), but now I want to try and setup DNS for more control and services.
    The server host name is servername (no FQDN), which shows up in Server Admin as servername.local.
    I read and followed Hoffman Labs great step-by-step, but must have missed something, since I still cannot get DNS resolution.
    Here is a brief summary of the Server Admin settings:
              Host Name                    servername
              Host (Server) IP          192.168.4.2
              Router IP (also default public DNS IP) 192.168.4.1
              Bonjour                    Wide Area  =  Not enabled
              Settings                    Accept recursive queries  =  localnets
              Settings                    Forwarder IPs  =  8.8.8.8  &  8.8.4.4  (Google Public DNS)
    now...          Zones                              1 Primary Zone  =  companyname.net (we own the domain)
                                            Primary Zone Name  =  companyname.net
                                            Nameserver Zone  =  companyname.net
                                            Nameserver Host Name  =  servername.companyname.net
                                            2 A Records:
                                            servername          192.168.4.2
                                            user1                    192.168.4.3
                                            Reverse mapping - automatic - OK
    Testing          Ran sudo changeip -checkhostname
                        Results:
                                  Primary address          =          192.168.4.2
                                  Current hostname          =          servername
                                  The DNS hostname is not available. Please repair DNS and re-run this tool.
    I must be doing something wrong, but I don't know what it is.  Please help.

    Did you intend to have both "example.com" and "example.net" listed there?  Are those domains really different?  I'm going to assume that was an obfuscation error.  (This is part of the "fun" of obfuscation, unfortunately.  Of having to differentiate errors in the actual configuration from errors that were introduced during the obfuscation.)
    >Oddly, even though I had manually assigned our Comcast gateway's DNS to Google DNS IPs, the gateway summary still shows up as Comcast's DNS server IPs.  So I removed the manually assigned Google DNS IPs from the gateway.
    The gateway (or whatever you're using as your DHCP server) should be configured with the DNS server address of 192.168.4.2.  All other hosts on your network (if you're planning to use your local DNS everywhere on your LAN) should also reference 192.168.4.2, either through an explicit static configuration, or as the address that was received from the DHCP server.
    And as for IP routing, are all your hosts, network printers, network gateways, DHCP servers, etc., all in the range of 192.168.4.1 to 192.168.4.254?  (They should be, if you're using a /24-class 255.255.255.0 subnet mask.)
    But then I don't know where this configuration has gone off the rails...  (Over the years, I've seen and have made my own configuration errors, I've been "bagged" by DNS caches, and I've hit various bugs in DNS implementations.)  What you have stated here should work.
    I'd start at the top of the DNS configuration article, and not stray from what is written there.   That there has been Google DNS and have had ISP DNS configured at the gateway does mean there were some areas that have strayed from the article.   I'd suggest following the DNS server configuration directions exactly.
    Setting up DNS services with OS X Server isn't difficult, but it can be a little fussy. 
    If you don't understand something that's written in that article -- or if you believe you need to enter something different than what's listed there -- then please stop and ask about it.  Either ask here, or ask over there.  (This feedback also helps improve that article.)
    Straying from what's written in that article is certainly and entirely feasible, but that's something best left until after the adminstrator is more familiar with running a DNS server.  Once you know how and why and where you can stray, there are all sorts of things you can do within a DNS configuration.

  • Sane virtual mail server setup?

    I'm giving up. I want a simple mail server setup (imaps, pop3s, smtps) with virtual user support that I can comfortably configure from the web (PostfixAdmin, web-cyradm, courier-web). I want to manage multiple users on multiple domains. It appears that the task I want to accomplish is insanely complex for some reason. I'd like to use as few different software packages as possible.
    I can't find a simple and sane tutorial on the topic and I don't even care what software is going to be used. Of course, I did search and play around with the config for hours but to no avail. The tutorials in the Arch wiki are no good either, they are either outdated or do not allow me to do web configuration.
    Help me out here, please.

    It's always good to have alternatives, but out of curiousity, did you not try the courier-mta wiki? I used that wiki guide recently and it had me running with a system like what you describe without too much fuss. The only stuff I haven't tried/used is web-based administration or mail access; perhaps this was the problem for you?

  • Mail Server setup - EM 10.2.0.1.0

    On Mail Server setup (EM 10.2.0.1.0) doesn't exists the options to set the User Name and Password, for authentication.
    How do I configure a user authentication for the SMTP server?

    You have to provide valid values for only the follwing two fields:
    1 Outgoing Mail (SMTP) Server
    2 and Sender's E-mail Address
    Optionally you cand enter something in the Identify Sender As that will be used in the email body as an alias for the email address.
    It should work. I tested this a few moments earlier.

  • Changing Mail Server Settings for Other IMAP

    Hello,
             I'm an Admin for a treatment center and one of our psychiatrists has a BB Tour. He asked me the other day if I could set up his email account on our exchange server for him on his phone. Going through the mail setup wizard I selected "Other" account and set it up for IMAP and then it asked me for his email address and password. It took the domain name and then assumed the mail server names were as such. Now in a perfect world, this wouldnt be an issue. I recently took over for a complete moron and this guy has our MX records pointing to a 3rd party company where all of our outside emails go and then the Outlook clients are set up to pop this box in addition to the Exchange setup (I know its totally lame). What Ive done for everyone else is just setup a IMAP account using the server IP address and mail works fine for them. I cannot for the life of me find where I can actually edit the mail server names for the IMAP account I create on his BB Tour. Is this a limitation the phone? Or am I not looking in the right place. Thanks!
    Solved!
    Go to Solution.

    Yup -- refer back to my first reply where I said to use the carrier BIS website...while I didn't say it quite so clearly, I did not say to use the on-device email setup wizards.
    The device interface to BIS (aka email setup wizards) and the carrier website interface to BIS have subtle differences. For what you need to do, you need to use the carrier website from a PC/browser. Here is the link:
    https://bis.na.blackberry.com/html?brand=vzw
    If you have not yet created BIS credentials, you will need to. I find it easier to first create those on the device interface and then use them in the web interface. Afterwards, you will have to use the credentials in the device interface, but there is a "remember me" box so you will only have to enter them once.
    Personally, I rarely use the device interface...a full keyboard, mouse, and monitor are so much simpler for doing things than a tiny BB screen/keyboard. But that's just me.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • HT3228 hi..what setting work on iphone 4 - lineone mail server setup.. have tried Tiscali recommendations, which aren't beiong picked up..nightmare..!

    hi..what settings work on iphone 4 - lineone mail server setup.. have tried Tiscali recommendations, which aren't biong picked up..nightmare..!
    Used Imap, Pop mail..!

    Thanks for the quick read and response. Do you feel the issue might lie with the fact that it is a Mac Mini? And possibly just not powerful enough to run Leopard Server? I have to say in our trials with MacPro it was like night and day as to how they performed. And if you could elaborate on this "Many VPNs don't play well with NAT so your VPN server should have a direct connection to the public network (preferably firewalled, of course, but not NATted)." Most every SoHo and for that matter uses simple NAT translation for security even our multi thousand dollar Cisco PIX and ASA's are basic NAT devices to start with. How would you put the VPN on public net while keeping the attack surface low for the rest of the services like file, web, mail and print?
    Don't get me wrong I want this to work more than you can imagine. We are so tired of supporting MSFT technologies that cost thousands a year in antivirus, antispyware, antispam and other malware protection for the enterprise. We know that Leopard has great potential but for an integrator, getting this system up and functional is not an easy task. And the worst part of it is every time we have called for support the tech always lets out a sigh when they hear we have run standard setup because they are not allowed to walk us thru the server console to make repairs. And have been told by 3 techs so far that this is a new product and the support avenues are not there for standard since it just supposed to work out of the box. But when it doesn't then ohh well. Which is sorta sad...
    DM

  • HT6209 e-mail server setup

    Foe Windows 8.1 - Outlook mail: what is the server setup for iCloud mail?

    Why ask under appletv security content?
    http://support.apple.com/kb/ht4864

  • HT1277 how do I find my outgoing mail server info for gmail account set up?

    how do I find my outgoing mail server info for gmail account setup?

    Most current Mac systems have a preloaded set of information and settings for the common email providers.  Try just choosing gmail and enter your userid and password at the prompts and see if the preload configures correctly for you.

  • Unable o Find Oracle Weblogic Server setup for Win 2008 Server 64-Bit

    Hi
    Unable o Find Oracle Weblogic Server setup for Win 2008 Server 64-Bit machine.
    Please provide the dowload links.
    Thanks

    Please follow this link for download and set requirements for installation of WebLogic 10.3 for Win 2008 Server 64bits:
    http://download.oracle.com/docs/cd/E13196_01/platform/suppconfigs/configs/windows2008/win2008_103.html
    best regards,
    Thiago Leôncio

  • Download Link for Oracle WebLogic Server setup for 64Bit 2008R2 Server

    I need One Information. Can we get Oracle WebLogic Server setup for 64Bit 2008R2 Server. If Yes Please provide me the Dowload Link.
    Thanks
    Vishwa

    Got link ... downloading Setup .. trying for my Luck

  • Simple question; Mac Server Setup for Mail, iCal and Address Book Services.

    Hi Guys;
    I'm new to the Mac Server world and need a few questions answered.
    I have purchased a new Mac mini Server for hosting File, Web, Mail, iCal and Address Book Services.
    I’m comfortable setting up File and Web Services however I’m a bit uneasy setting up Mail, iCal and Address Book services to be access locally and remotely(via the internet).
    My current setup is;
    Internet connection (Dynamic IP) -> Router -> Mac mini Server.
    I have purchased a domain name (Thornton-net.com) from DynDns.com + a custom DNS service as I can setup my router to update my domain’s IP address automatically.
    I can access File and Web Services remotely (thortnon-net.com) perfectly without any issues via the Port Forwarding feature of the Router.
    If I setup Mail, iCal and Address Book Services -> will Mail, iCal and Address Book clients be able to access these services hosted by the server via Thornton-net.com?
    Message was edited by: Allan.Thornton

    Welcome to the forums.
    For mail services (and specifically for your outbound mail to be accepted by other mail servers) your mail server needs to have a static IP address and matching forward and reverse and MX records, or a tunnel to a static IP (with matching DNS), or you need another mail server where you have an authorized relay. Without that, your mail will be considered a spam engine, and dropped.
    Additionally, your particular tier of service with your ISP (with a static IP) will generally allow server-oriented access and server-oriented network traffic, where a residential or other tier of service (with a dynamic IP addresses) can be firewalled.
    The ISP controls the "high ground" of the network connections here, so you pretty much get to play by their rules and requirements. If they don't offer static IP, then (presuming their T&Cs permit it) you get to tunnel (via IPv6, for instance) to a tunnel broker, and receive your network traffic via that (and with matching DNS) point of presence. That could well be a tunnel for your mail at whichever your DNS provider is here, because you'll have issues with your dynamic address. (You get to sort out if they offer that.)
    Far and away the easiest approach (if you want to host this stuff yourself) is to work with the ISP. They're inherently involved in your network, and they and they alone have full control over your reverse DNS configuration.

  • Redundent mail server setup (backup mail server)

    i have been reading all the post of setting up a mackup postfix server. i have looked at the configuration files and have a second machine ready to be implemented but have some questions on how exactly the backup works. my current setup is:
    - xserve1 with 10.4.3 OD master running mail, web, dns, ichat, ftp, host name is mail.mydomain.com
    - xserve2 with 10.4.3 (i will make this replica) running web and backup dns
    - G4 466MHz with 10.4.3 Server running mail and web, host name is mail2.mydomain.com (this is to bemy postfix backup server)
    all 3 are behind a firewall with NAT. they have local LAN IPs with NAT to 3 separate WAN IPs and open ports for the needed services.
    my first question is: do i need to run dns as well on mail2.mydomain.com?
    while i understand that mail stays in the queue on the postfix backup, does that mean that while mail.mydomain.com (primary mail server) is down users will not be getting any mail? can the users actually login to the mail2.mydomain.com and if yes how do they authorize?
    should i keep mail2.mydomain.com as a standalone or make it part of the directory?
    any info is appreciated.
    thanks
    martin
    xserve G5   Mac OS X (10.4.3)  

    don't mail servers hold mail for days anyway and keep
    retrying and when our mail comes back up will get all
    the mail?
    Yes, they typically do (unless some braindead administrator has configured his server to try only for a few hours or so).
    i assume there is no difference if my
    backup mail server runs on 10.3.9 then?
    None whatsoever.
    - is there a practical way to set up a mail that
    clinets can login to and check mail while the primary
    server is down?
    Practical? No.
    can the backup server forward as well
    while it holds to the queue?
    Why would you want that? Where should it forward to if the primary is down? As soon as the primary is up, the secondary will forward to i.
    the last time i had some
    coruption and problems with reconstruct (which you
    helped me with), we were down for 24 hours. i am
    trying to avoid this. i have an image and i run
    mailbfr to backup i assume i can use that in case of
    harware failure or massive os corruption that may
    take hours to fix.
    If push comes to shove this may help. Although images are never too brilliant for mail services recovery.
    my problem is that if this happens
    during the week, during daytime we cannot really
    afford to be down at that time.
    This is really your call. Only you can decide how much money you want/need to throw at resilience. But if you decide you cannot afford more than an hour of downtime, you will need far more than an onsite secondary mx
    Alex

  • Mail server setup issues

    Hi.
    I am in trouble setting up a basic mail server. I just spent the last 10 or so hours, in one more try to set it, and yet no results.
    Please, give some help as i am becoming sort of desperated with it
    This time, i followed this guide since the beginning.
    What I've done:
    - Created a user vmail, with home directory set on /var/mail/vmail/
    - Had a LAMP server already working.
    - Created two databases: postfix_db and roundcube_db, owned by postfix_user and roundcube_user respectively.
    - Since it is for personal use and i don't use "old/odd clients like Outlook"  i skipped smtps. And made the following files:
    My postfix main.cf(every commented line removed):
    queue_directory = /var/spool/postfix
    command_directory = /usr/bin
    daemon_directory = /usr/lib/postfix
    data_directory = /var/lib/postfix
    mail_owner = postfix
    mydomain = mydomainname.tld
    unknown_local_recipient_reject_code = 550
    alias_maps = hash:/etc/postfix/aliases
    alias_database = $alias_maps
    debug_peer_level = 2
    debugger_command =
    PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
    ddd $daemon_directory/$process_name $process_id & sleep 5
    sendmail_path = /usr/bin/sendmail
    newaliases_path = /usr/bin/newaliases
    mailq_path = /usr/bin/mailq
    setgid_group = postdrop
    html_directory = no
    manpage_directory = /usr/share/man
    sample_directory = /etc/postfix/sample
    readme_directory = /usr/share/doc/postfix
    inet_protocols = ipv4
    relay_domains = *
    virtual_alias_maps = proxy:mysql:/etc/postfix/virtual_alias_maps.cf
    virtual_mailbox_domains = proxy:mysql:/etc/postfix/virtual_domains_maps.cf
    virtual_mailbox_maps = proxy:mysql:/etc/postfix/virtual_mailbox_maps.cf
    virtual_mailbox_base = /var/mail/vmail
    virtual_mailbox_limit = 512000000
    virtual_minimum_uid = 5000
    virtual_transport = virtual
    virtual_uid_maps = static:5000
    virtual_gid_maps = static:5000
    local_transport = virtual
    local_recipient_maps = $virtual_mailbox_maps
    transport_maps = hash:/etc/postfix/transport
    smtpd_sasl_auth_enable = yes
    smtpd_sasl_type = dovecot
    smtpd_sasl_path = /var/run/dovecot/auth-client
    smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
    smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
    smtpd_sasl_security_options = noanonymous
    smtpd_sasl_tls_security_options = $smtpd_sasl_security_options
    smtpd_tls_auth_only = yes
    smtpd_tls_cert_file = /etc/ssl/private/server.crt
    smtpd_tls_key_file = /etc/ssl/private/server.key
    smtpd_sasl_local_domain = $mydomain
    broken_sasl_auth_clients = yes
    smtpd_tls_loglevel = 1
    Postfix master.cf
    smtp inet n - n - - smtpd
    submission inet n - n - - smtpd
    -o smtpd_tls_security_level=encrypt
    -o smtpd_sasl_auth_enable=yes
    pickup unix n - n 60 1 pickup
    cleanup unix n - n - 0 cleanup
    qmgr unix n - n 300 1 qmgr
    tlsmgr unix - - n 1000? 1 tlsmgr
    rewrite unix - - n - - trivial-rewrite
    bounce unix - - n - 0 bounce
    defer unix - - n - 0 bounce
    trace unix - - n - 0 bounce
    verify unix - - n - 1 verify
    flush unix n - n 1000? 0 flush
    proxymap unix - - n - - proxymap
    proxywrite unix - - n - 1 proxymap
    smtp unix - - n - - smtp
    relay unix - - n - - smtp
    showq unix n - n - - showq
    error unix - - n - - error
    retry unix - - n - - error
    discard unix - - n - - discard
    local unix - n n - - local
    virtual unix - n n - - virtual
    lmtp unix - - n - - lmtp
    anvil unix - - n - 1 anvil
    scache unix - - n - 1 scache
    /etc/postfix/virtual_alias_maps.cf (sample password)
    user = postfix_user
    password = m/<~VN4XQ!G=jE[A/-
    hosts = localhost
    dbname = postfix_db
    query = SELECT goto FROM alias WHERE address='%s' AND active = true
    /etc/postfix/virtual_domains_maps.cf
    user = postfix_user
    password = m/<~VN4XQ!G=jE[A/-
    hosts = localhost
    dbname = postfix_db
    query = SELECT domain FROM domain WHERE domain='%s' AND backupmx = false AND active = true
    /etc/postfix/virtual_mailbox_limits.cf
    user = postfix_user
    password = m/<~VN4XQ!G=jE[A/-
    hosts = localhost
    dbname = postfix_db
    query = SELECT quota FROM mailbox WHERE username='%s'
    /etc/postfix/virtual_mailbox_maps.cf
    user = postfix_user
    password = m/<~VN4XQ!G=jE[A/-
    hosts = localhost
    dbname = postfix_db
    query = SELECT maildir FROM mailbox WHERE username='%s' AND active = true
    - Created the SSL key with no problem, and put it in place.
    Edited dovecot.conf:
    protocols = imap pop3
    auth_mechanisms = plain
    passdb {
    driver = sql
    args = /etc/dovecot/dovecot-sql.conf
    userdb sql {
    driver = sql
    args = /etc/dovecot/dovecot-sql.conf
    service auth {
    unix_listener auth-client {
    group = postfix
    mode = 0660
    user = postfix
    user = root
    mail_home = /var/mail/vmail/%d/%u
    mail_location = maildir:~
    ssl_cert = </etc/ssl/private/server.crt
    ssl_key = </etc/ssl/private/server.key
    dict {
    #quota = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext
    #expire = sqlite:/etc/dovecot/dovecot-dict-sql.conf.ext
    !include conf.d/*.conf
    !include_try local.conf
    /etc/dovecot/dovecot-sql.conf
    driver = mysql
    connect = host=localhost dbname=postfix_db user=postfix_user password=m/<~VN4XQ!G=jE[A/-
    default_pass_scheme = MD5-CRYPT
    user_query = SELECT '/var/mail/vmail/%d/%u' as home, 'maildir:/var/mail/vmail/%d/%u' as mail, 5000 AS uid, 5000 AS gid, concat('dirsize:storage=', quota) AS quota FROM mailbox WHERE username = '%u' AND active = '1'
    password_query = SELECT username as user, password, '/var/mail/vmail/%d/%u' as userdb_home, 'maildir:/var/mail/vmail/%d/%u' as userdb_mail, 5000 as userdb_uid, 5000 as userdb_gid FROM mailbox WHERE username = '%u' AND active = '1'
    - Installed postfixadmin and roundcube and made their apache alias.
    - Made directories writable for them.
    /etc/webapps/postfixadmin/config.inc.php (note that there is no "?>" to end the script, it came just like that, and since it had no error there ill assume its normal)
    <?php
    $CONF['configured'] = true;
    $CONF['setup_password'] = '562bc24a874b0c2a7340e3da04b3fdf6:d60282f5cbc19340c73cafbb6526379be696a7c7';
    $CONF['postfix_admin_url'] = '[url]http://mydomain.com/postfixadmin[/url]';
    $CONF['postfix_admin_path'] = dirname(__FILE__);
    $CONF['default_language'] = 'en';
    $CONF['database_prefix'] = '';
    $CONF['database_tables'] = array (
    'admin' => 'admin',
    'alias' => 'alias',
    'alias_domain' => 'alias_domain',
    'config' => 'config',
    'domain' => 'domain',
    'domain_admins' => 'domain_admins',
    'fetchmail' => 'fetchmail',
    'log' => 'log',
    'mailbox' => 'mailbox',
    'vacation' => 'vacation',
    'vacation_notification' => 'vacation_notification',
    'quota' => 'quota',
    'quota2' => 'quota2',
    $CONF['admin_email'] = '[email protected]';
    $CONF['smtp_server'] = 'localhost';
    $CONF['smtp_port'] = '25';
    $CONF['encrypt'] = 'md5crypt';
    $CONF['authlib_default_flavor'] = 'md5raw';
    $CONF['dovecotpw'] = "/usr/sbin/dovecotpw";
    $CONF['min_password_length'] = 5;
    $CONF['generate_password'] = 'NO';
    $CONF['show_password'] = 'NO';
    $CONF['page_size'] = '10';
    $CONF['default_aliases'] = array (
    'abuse' => '[email protected]',
    'hostmaster' => '[email protected]',
    'postmaster' => '[email protected]',
    'webmaster' => '[email protected]'
    $CONF['domain_path'] = 'NO';
    $CONF['domain_in_mailbox'] = 'YES';
    $CONF['maildir_name_hook'] = 'NO';
    $CONF['aliases'] = '10';
    $CONF['mailboxes'] = '10';
    $CONF['maxquota'] = '10';
    $CONF['quota'] = 'NO';
    $CONF['quota_multiplier'] = '1024000';
    $CONF['transport'] = 'NO';
    $CONF['transport_options'] = array (
    'virtual', // for virtual accounts
    'local', // for system accounts
    'relay' // for backup mx
    $CONF['transport_default'] = 'virtual';
    $CONF['vacation'] = 'NO';
    $CONF['vacation_domain'] = 'autoreply.change-this-to-your.domain.tld';
    $CONF['vacation_control'] ='YES';
    $CONF['vacation_control_admin'] = 'YES';
    $CONF['alias_control'] = 'NO';
    $CONF['alias_control_admin'] = 'NO';
    $CONF['special_alias_control'] = 'NO';
    $CONF['alias_goto_limit'] = '0';
    $CONF['alias_domain'] = 'YES';
    $CONF['backup'] = 'YES';
    $CONF['sendmail'] = 'YES';
    $CONF['logging'] = 'YES';
    $CONF['fetchmail'] = 'YES';
    $CONF['fetchmail_extra_options'] = 'NO';
    $CONF['show_header_text'] = 'NO';
    $CONF['header_text'] = ':: Postfix Admin ::';
    $CONF['user_footer_link'] = "[url]http://mydomain.com[/url]";
    $CONF['show_footer_text'] = 'YES';
    $CONF['footer_text'] = 'Return to mydomain.com';
    $CONF['footer_link'] = '[url]http://mydomain.com[/url]';
    $CONF['welcome_text'] = <<<EOM
    Welcome to your new account.
    EOM;
    $CONF['emailcheck_resolve_domain']='YES';
    $CONF['show_status']='NO';
    $CONF['show_status_key']='NO';
    $CONF['show_status_text']='&nbsp;&nbsp;';
    $CONF['show_undeliverable']='NO';
    $CONF['show_undeliverable_color']='tomato';
    $CONF['show_undeliverable_exceptions']=array("unixmail.domain.ext","exchangeserver.domain.ext","gmail.com");
    $CONF['show_popimap']='NO';
    $CONF['show_popimap_color']='darkgrey';
    $CONF['show_custom_domains']=array("subdomain.domain.ext","domain2.ext");
    $CONF['show_custom_colors']=array("lightgreen","lightblue");
    $CONF['recipient_delimiter'] = "";
    $CONF['create_mailbox_subdirs_prefix']='INBOX.';
    $CONF['used_quotas'] = 'NO';
    $CONF['new_quota_table'] = 'NO';
    $CONF['theme_logo'] = 'images/logo-default.png';
    $CONF['theme_css'] = 'css/default.css';
    $CONF['xmlrpc_enabled'] = false;
    if (file_exists(dirname(__FILE__) . '/config.local.php')) {
    include(dirname(__FILE__) . '/config.local.php');
    $CONF['domain_path'] = 'YES';
    $CONF['domain_in_mailbox'] = 'YES';
    $CONF['database_type'] = 'mysqli';
    $CONF['database_host'] = 'localhost';
    $CONF['database_user'] = 'postfix_user';
    $CONF['database_password'] = 'm/<~VN4XQ!G=jE[A/-';
    $CONF['database_name'] = 'postfix_db';
    - I went to domain/postfixAdmin/setup.php and domain/roundcube/installer/ and everything was ok.
    db.inc.php (roundcube):
    <?php
    $rcmail_config = array();
    $rcmail_config['db_dsnw'] = 'mysql://roundcube_user:%3D%29CYbd9bK%210Z7%29AsWU@localhost/roundcube_db';
    $rcmail_config['db_dsnr'] = '';
    $rcmail_config['db_persistent'] = FALSE;
    $rcmail_config['db_table_users'] = 'users';
    $rcmail_config['db_table_identities'] = 'identities';
    $rcmail_config['db_table_contacts'] = 'contacts';
    $rcmail_config['db_table_contactgroups'] = 'contactgroups';
    $rcmail_config['db_table_contactgroupmembers'] = 'contactgroupmembers';
    $rcmail_config['db_table_session'] = 'session';
    $rcmail_config['db_table_cache'] = 'cache';
    $rcmail_config['db_table_cache_index'] = 'cache_index';
    $rcmail_config['db_table_cache_thread'] = 'cache_thread';
    $rcmail_config['db_table_cache_messages'] = 'cache_messages';
    $rcmail_config['db_table_dictionary'] = 'dictionary';
    $rcmail_config['db_table_searches'] = 'searches';
    $rcmail_config['db_table_system'] = 'system';
    $rcmail_config['db_sequence_users'] = 'user_ids';
    $rcmail_config['db_sequence_identities'] = 'identity_ids';
    $rcmail_config['db_sequence_contacts'] = 'contact_ids';
    $rcmail_config['db_sequence_contactgroups'] = 'contactgroups_ids';
    $rcmail_config['db_sequence_searches'] = 'search_ids';
    main.inc.php(roundcube):
    <?php
    $rcmail_config = array();
    $rcmail_config['debug_level'] = 5;
    $rcmail_config['log_driver'] = 'file';
    $rcmail_config['log_date_format'] = 'd-M-Y H:i:s O';
    $rcmail_config['syslog_id'] = 'roundcube';
    $rcmail_config['syslog_facility'] = LOG_USER;
    $rcmail_config['smtp_log'] = true;
    $rcmail_config['log_logins'] = false;
    $rcmail_config['log_session'] = false;
    $rcmail_config['sql_debug'] = false;
    $rcmail_config['imap_debug'] = false;
    $rcmail_config['ldap_debug'] = false;
    $rcmail_config['smtp_debug'] = false;
    $rcmail_config['default_host'] = 'tls://localhost/';
    $rcmail_config['default_port'] = 993;
    $rcmail_config['imap_auth_type'] = null;
    $rcmail_config['imap_delimiter'] = null;
    $rcmail_config['imap_ns_personal'] = null;
    $rcmail_config['imap_ns_other'] = null;
    $rcmail_config['imap_ns_shared'] = null;
    $rcmail_config['imap_force_caps'] = false;
    $rcmail_config['imap_force_lsub'] = false;
    $rcmail_config['imap_force_ns'] = false;
    $rcmail_config['imap_timeout'] = 0;
    $rcmail_config['imap_auth_cid'] = null;
    $rcmail_config['imap_auth_pw'] = null;
    $rcmail_config['imap_cache'] = null;
    $rcmail_config['messages_cache'] = false;
    $rcmail_config['smtp_server'] = 'tls://localhost/';
    $rcmail_config['smtp_port'] = 587;
    $rcmail_config['smtp_user'] = '';
    $rcmail_config['smtp_pass'] = '';
    $rcmail_config['smtp_auth_type'] = '';
    $rcmail_config['smtp_auth_cid'] = null;
    $rcmail_config['smtp_auth_pw'] = null;
    $rcmail_config['smtp_helo_host'] = '';
    $rcmail_config['smtp_timeout'] = 0;
    $rcmail_config['enable_installer'] = false;
    $rcmail_config['dont_override'] = array();
    $rcmail_config['support_url'] = '';
    $rcmail_config['skin_logo'] = 'sorrybutnocookie';
    $rcmail_config['auto_create_user'] = true;
    $rcmail_config['user_aliases'] = false;
    $rcmail_config['log_dir'] = 'logs/';
    $rcmail_config['temp_dir'] = 'temp/';
    $rcmail_config['message_cache_lifetime'] = '10d';
    $rcmail_config['force_https'] = false;
    $rcmail_config['use_https'] = false;
    $rcmail_config['login_autocomplete'] = 0;
    $rcmail_config['login_lc'] = 2;
    $rcmail_config['skin_include_php'] = false;
    $rcmail_config['display_version'] = false;
    $rcmail_config['session_lifetime'] = 10;
    $rcmail_config['session_domain'] = '';
    $rcmail_config['session_name'] = null;
    $rcmail_config['session_auth_name'] = null;
    $rcmail_config['session_path'] = null;
    $rcmail_config['session_storage'] = 'db';
    $rcmail_config['memcache_hosts'] = null;
    $rcmail_config['ip_check'] = true;
    $rcmail_config['referer_check'] = false;
    $rcmail_config['x_frame_options'] = 'sameorigin';
    $rcmail_config['des_key'] = '0JaV%FnEivx9e+JdH2g*?n3n';
    $rcmail_config['username_domain'] = '';
    $rcmail_config['mail_domain'] = '';
    $rcmail_config['password_charset'] = 'ISO-8859-1';
    $rcmail_config['sendmail_delay'] = 0;
    $rcmail_config['max_recipients'] = 0;
    $rcmail_config['max_group_members'] = 0;
    $rcmail_config['useragent'] = 'Roundcube Webmail/'.RCMAIL_VERSION;
    $rcmail_config['product_name'] = 'Test';
    $rcmail_config['include_host_config'] = false;
    $rcmail_config['generic_message_footer'] = '';
    $rcmail_config['generic_message_footer_html'] = '';
    $rcmail_config['http_received_header'] = false;
    $rcmail_config['http_received_header_encrypt'] = false;
    $rcmail_config['mail_header_delimiter'] = NULL;
    $rcmail_config['line_length'] = 72;
    $rcmail_config['send_format_flowed'] = true;
    $rcmail_config['mdn_use_from'] = false;
    $rcmail_config['identities_level'] = 0;
    $rcmail_config['client_mimetypes'] = null;
    $rcmail_config['mime_magic'] = null;
    $rcmail_config['mime_types'] = null;
    $rcmail_config['im_identify_path'] = null;
    $rcmail_config['im_convert_path'] = null;
    $rcmail_config['image_thumbnail_size'] = 240;
    $rcmail_config['contact_photo_size'] = 160;
    $rcmail_config['email_dns_check'] = false;
    $rcmail_config['no_save_sent_messages'] = false;
    $rcmail_config['plugins'] = array();
    $rcmail_config['message_sort_col'] = '';
    $rcmail_config['message_sort_order'] = 'DESC';
    $rcmail_config['list_cols'] = array('subject', 'status', 'fromto', 'date', 'size', 'flag', 'attachment');
    $rcmail_config['language'] = null;
    $rcmail_config['date_format'] = 'Y-m-d';
    $rcmail_config['date_formats'] = array('Y-m-d', 'Y/m/d', 'Y.m.d', 'd-m-Y', 'd/m/Y', 'd.m.Y', 'j.n.Y');
    $rcmail_config['time_format'] = 'H:i';
    $rcmail_config['time_formats'] = array('G:i', 'H:i', 'g:i a', 'h:i A');
    $rcmail_config['date_short'] = 'D H:i';
    $rcmail_config['date_long'] = 'Y-m-d H:i';
    $rcmail_config['drafts_mbox'] = 'Drafts';
    $rcmail_config['junk_mbox'] = 'Junk';
    $rcmail_config['sent_mbox'] = 'Sent';
    $rcmail_config['trash_mbox'] = 'Trash';
    $rcmail_config['default_folders'] = array('INBOX', 'Drafts', 'Sent', 'Junk', 'Trash');
    $rcmail_config['create_default_folders'] = false;
    $rcmail_config['protect_default_folders'] = true;
    $rcmail_config['quota_zero_as_unlimited'] = false;
    $rcmail_config['enable_spellcheck'] = false;
    $rcmail_config['spellcheck_dictionary'] = false;
    $rcmail_config['spellcheck_engine'] = 'googie';
    $rcmail_config['spellcheck_uri'] = '';
    $rcmail_config['spellcheck_languages'] = NULL;
    $rcmail_config['spellcheck_ignore_caps'] = false;
    $rcmail_config['spellcheck_ignore_nums'] = false;
    $rcmail_config['spellcheck_ignore_syms'] = false;
    $rcmail_config['recipients_separator'] = ',';
    $rcmail_config['max_pagesize'] = 200;
    $rcmail_config['min_refresh_interval'] = 60;
    $rcmail_config['upload_progress'] = false;
    $rcmail_config['undo_timeout'] = 0;
    $rcmail_config['address_book_type'] = 'sql';
    $rcmail_config['ldap_public'] = array();
    $rcmail_config['autocomplete_addressbooks'] = array('sql');
    $rcmail_config['autocomplete_min_length'] = 1;
    $rcmail_config['autocomplete_threads'] = 0;
    $rcmail_config['autocomplete_max'] = 15;
    $rcmail_config['address_template'] = '{street}<br/>{locality} {zipcode}<br/>{country} {region}';
    $rcmail_config['addressbook_search_mode'] = 0;
    $rcmail_config['default_charset'] = 'ISO-8859-1';
    $rcmail_config['skin'] = 'larry';
    $rcmail_config['mail_pagesize'] = 50;
    $rcmail_config['addressbook_pagesize'] = 50;
    $rcmail_config['addressbook_sort_col'] = 'surname';
    $rcmail_config['addressbook_name_listing'] = 0;
    $rcmail_config['timezone'] = 'auto';
    $rcmail_config['prefer_html'] = true;
    $rcmail_config['show_images'] = 0;
    $rcmail_config['message_extwin'] = false;
    $rcmail_config['compose_extwin'] = false;
    $rcmail_config['htmleditor'] = 0;
    $rcmail_config['prettydate'] = true;
    $rcmail_config['draft_autosave'] = 300;
    $rcmail_config['preview_pane'] = false;
    $rcmail_config['preview_pane_mark_read'] = 0;
    $rcmail_config['logout_purge'] = false;
    $rcmail_config['logout_expunge'] = false;
    $rcmail_config['inline_images'] = true;
    $rcmail_config['mime_param_folding'] = 0;
    $rcmail_config['skip_deleted'] = false;
    $rcmail_config['read_when_deleted'] = true;
    $rcmail_config['flag_for_deletion'] = false;
    $rcmail_config['refresh_interval'] = 60;
    $rcmail_config['check_all_folders'] = false;
    $rcmail_config['display_next'] = true;
    $rcmail_config['autoexpand_threads'] = 0;
    $rcmail_config['reply_mode'] = 0;
    $rcmail_config['strip_existing_sig'] = true;
    $rcmail_config['show_sig'] = 1;
    $rcmail_config['force_7bit'] = false;
    $rcmail_config['search_mods'] = null;
    $rcmail_config['addressbook_search_mods'] = null;
    $rcmail_config['delete_always'] = false;
    $rcmail_config['delete_junk'] = false;
    $rcmail_config['mdn_requests'] = 0;
    $rcmail_config['mdn_default'] = 0;
    $rcmail_config['dsn_default'] = 0;
    $rcmail_config['reply_same_folder'] = false;
    $rcmail_config['forward_attachment'] = false;
    $rcmail_config['default_addressbook'] = null;
    $rcmail_config['spellcheck_before_send'] = false;
    $rcmail_config['autocomplete_single'] = false;
    $rcmail_config['default_font'] = 'Verdana';
    - From what i can see, postfixadmin used and populated its database, but not roundcube.
    - I can open postfixadmin and log in with no apparent errors (not that i know what to do with it instead of roundcube, but at least works...)
    - Whenever i open roundcube it begins to output errors everywhere about db connection (I was only able after changing its .htaccess to Allow from all, is it a bad idea?)
    DB Error in /usr/share/webapps/roundcubemail/program/lib/Roundcube/rcube_db.php (416): [1146] Table 'roundcube_db.session' doesn't exist (SQL Query: SELECT vars, ip, changed FROM session WHERE sess_id = 'pq5ofv7ja0gh2sunsg38jmd3g1')
    Warning: session_start(): Cannot send session cache limiter - headers already sent in /usr/share/webapps/roundcubemail/program/lib/Roundcube/rcube.php on line 445
    DB Error: [1146] Table 'roundcube_db.session' doesn't exist
    DATABASE ERROR: CONNECTION FAILED!
    Unable to connect to the database!
    Please contact your server-administrator.
    DB Error in /usr/share/webapps/roundcubemail/program/lib/Roundcube/rcube_db.php (416): [1146] Table 'roundcube_db.session' doesn't exist (SQL Query: INSERT INTO session (sess_id, vars, ip, created, changed) VALUES ('pq5ofv7ja0gh2sunsg38jmd3g1', 'dGVtcHxiOjE7bGFuZ3VhZ2V8czo1OiJlbl9VUyI7dGFza3xzOjU6ImxvZ2luIjs=', 'xxx.xxx.xxx.xxx', '2014-02-08 07:34:46', '2014-02-08 07:34:46'))
    Thats all i know. Whats wrong? (i already tried to set db logins with no pw at all, but still with the same problems)
    How far am i to be able to send/receive one email? Please, tell me i am close...
    Mail servers could be so much more linear to set up
    Thanks for your help. Time to get some sleep!

    The roundcube db schema needs to setup manually. See /usr/share/webapps/roundcube/INSTALL
    Also, from your /etc/webapps/postfixadmin/config.inc.php:
    $CONF['domain_path'] = 'NO';
    $CONF['domain_in_mailbox'] = 'YES';
    $CONF['maildir_name_hook'] = 'NO';
    ..which results in /var/mail/vmail/[email protected]
    From your dovecot.conf
    mail_home = /var/mail/vmail/%d/%u
    ...which results in /var/mail/vmail/domain.com/user
    That doesn't fit together.

Maybe you are looking for

  • CAUTION! SourceForge, Linux Foundation printer drivers on MacBook Pro Retina

    I have installed Gutenprint, USBTB, and HPIJS on my brand new MacBook Pro Retina in an attempt to get it to function with my HP Officejet K80 printer, to no avail.....and now they will not uninstall. To make matters worse, the uninstaller for all of

  • Help Needed with Airport Express

    Hi All, I have recently purchased a new Airport Express with AirTunes and installed the Airport Setup on my laptop as provided on the CD. I am using the Windows Wireless Zero Configuration service to connect to the wireless networks. I am able to con

  • Exchange Server 2013 - SChannel errors KB2992611

    Hi, At a customer we have Exchange 2013 setup on a Windows Server 2012 R2 virtual machine. Last weekend we installed the latest patches and since then we are experiencing some errors regarding TLS. The System Eventlog is full of events from SChannel

  • ESS Leave Resquest

    Hello Experts, I am implementing Business Packages ESS 1.0. My problem is in the service leave request at moment verify the absences show me a message ''the infotype not exists''. help me please, I am new in this forum Thank

  • Urgent issue!!! Soundblaster Driv

    I purchased a Soundcard on eBay advertised as a Sounblaster Audigy LE, It came with a creative driver disc and i have now lost this. After reformatting i attempted to download drivers, yet it says no compatible device found on system. After clicking