Mail server setup question on mini server
I want use Mac Mini Server as my emailserver, I have some question here.
Is 500G hard-disk enough for storedata? After two or three years, incase 500G already not enough for store all email data, Could I have any solution for this issue? My company has around 100 email user.
Is Mac mini server can do 7*24job?
Is 500G hard-disk enough for storedata?
How long is a piece of string?
Seriously. Who can answer that question? no one here can. It depends on way more factors than you've given us. The use of IMAP (where messages are stored on the server) vs. POP (where they're downloaded to the client) will also make a difference, as will retention policies (do you require keeping all email correspondence for 5 years? or do you not care if users delete mail immediately?)
A good starting point, though would be to look at the average size of a user's mailbox now and extrapolate.
For example, I think I'm a fairly heavy email user and my ~/Library/Mail directory is 5.4GB. If everyone in your company is like me then you'd need 5.4GB x 100 users, or 540GB to store all their mail.
Most users aren't like me, though, but you'll have to determine that yourself.
After two or three years, incase 500G already not enough for store all email data, Could I have any solution for this issue?
Sure. You can add additional storage (e.g. via FireWire or some external mechanism) and migrate mailboxes there. You can even selectively store different user's mailboxes on different volumes. It's all possible.
Is Mac mini server can do 7*24job?
Sure. Many people are using the Mini 24/7. I wouldn't say it's ideal for critical systems but using mirrored disk will insulate you from the biggest problem. If this is going to be the main mail system for your company though, you need to consider other elements such as backup and failover (what to do when/if this machine crashes/explodes/is otherwise unavailable).
Similar Messages
-
Hi
I've been having difficulties with mail on my Mac and have checked all the settings. I have three mail accounts, 2 iClouds (different acct names) and 1 bigpond account.
Whenever I change the outgoing mail server drop down boxes for the iCloud accts and save my changes, I go out of it then when I go back to the iCloud accts the drop down boxes for both iCloud accounts have reverted back to 'None'.
Is this of any relevance? Is it 'normal'?
I've tried deleting all mail accounts and adding them all again but the same thing still happens.
I have been on Apple Support and followed the Mail Acct setup tutorial.
I'd appreciate any help on this matter thanks.Thanks for your reply Winston Churchill.
Because I'd been having problems which had recently been resolved by AppleCare Support I decided to go through all my accounts and check their individual settings. I found a Tutorial on Apple support for setting up or verifying email account settings and found mine were different so I changed it.
In any event I took your advice and just went with the option of automatically setting the iCloud accounts up and I haven't had anymore problems thus far - fingers crossed.
I do however note that my drop down box in account settings still says 'none' for the outgoing mail server and the 'use this server only' check box isn't ticked despite being ticked in the 'verify account' info on the tutorial, so hence my question to the community - did this matter and what was the difference?
I will let sleeping dogs lie I think and will see how I go.
Many thanks for your help. -
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 -
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 -
Greetings,
I need some pro's cons, Ideas taunts and general whaddia thinks.
Setting up a new mail server. dpG5 xserve w/ 10,000 rpm drives
my thoughts are to take the user information off the machine to a second G5 xserve running as an ODM.
I thought about splitting IMAP/pop services to another box. keeping my primary SMTP Spam/AV away from cyrus, relaying inbound messages to the IMAP server.
so I would have
ODM.mydomain
SMTP1.mydomain
IMAP1.mydomain
-- Does anyone see any performance or configuration hick ups here?
now comes the ugly question.
How do I set up each smtp server. the imap server is still going to have to run smtp to deliver and recieve delivery of messages. but I need them to answer for mydomain, not host1.mydomain. I'm a little foggy on what comes first
--jThere are multiple ways of achieving this.
The simplest is for the servers to deliver via smtp to each other.
So (very very simplified):
Since you said you use OD, I assume all servers will refer to your OD master for user account details.
Server 1 (Filter)
Postfix & amavisd & ClamAV & spamassassin
main.cf and master.cf should be configured like you are used to now except that you only want to be able to send to the content filter and nowhere else.
In amavisd.conf uncomment and change IP (to IP of SMTP/IMAP server) of this line:
$forward_method = 'smtp:127.0.0.1:10025';
No relay settings needed, because you want mail to go the filter first and not to another SMTP server.
Server 2 (Mail Stores)
Postfix & Cyrus
main.cf and master.cf should be configured like you are used to now except that you do not want any kind of filtering anymore. Also set to accept only from Server 1 (since it should not accept incoming mail from the outside world directly)
Server 3 (Outgoing SMTP)
Postfix
main.cf and master.cf should be configured like you are used to now except that you do not need to accept incoming mail. Also no filtering needed (unless you want to scan outgoing mail)
Mail clients:
Point incoming to Server 2 and outgoing to Server 3
That's pretty much it. I know it's not a walkthrough , but then again this kind of setup is better fully understood rather than copied step-by-step.
Let me know if you need anything else.
Alex
P.S.
-Optionally you could use Server 3 as a secondary MX for backup reasons.
-For most Postfix settings see : http://www.postfix.org/postconf.5.html
-All of this can be further improved with firewall rules -
How to setup Mail server in Oracle 10g?
Hi all,
I want to setup a mail server in my OS, can anyone give me the step by step procedure to setup a mail to send mails to all the users.
I would appreciate if anyone refer me any document.
JafarWell, it depends heavily on what operating system you're using, what mail server you're trying to install, your network topology, etc. Realistically, this is a question that is probably better asked in a forum for whatever mail server you're trying to install...
Justin -
Is there a best practice for multi location server setups including mac mail server?
Afternoon all,
Last year I setup a client with Snow Leopard Server including hosting his mail on the server with Mac Mail Server and calendaring. He now has plans to open other sites with the same setup, how can this be done using Mac Server? The implementation of a new server on the new site would be straight forward my concerns / question are:
1. How would the two servers communicate?
a.)Do they need to communicate?
3. How will mail across the two sites work?
a.) How will DNS work for email internally?
b.) How will DNS work for emai externally?
4. How will calendaring work across the two sites?
Is Mac Server the best platform for moving ahead with this type of business need?
Any help or direction would be greatly appreciated.
AnthonyCamelot,
many thanks for the speedy reply. Your comments are very helpful thank you, if I may I will give you some for information and some other questions.
The offices will be from 5 miles to 25 miles apart, the new office and ones that follow will be considered as branches of the main office for example the company name is Sunflower and it serves area 1, then new will office will serve area 2 and so on. So in theory I could leave the main server domain and mail mx record as sunflower and then add further servers as 2.sunflower.com, 3.sunflower.com as domains and mx records? This would then provide unique mail records and users within the organisation such as [email protected] and [email protected], which doesnt look to good I would prefer all users to be name@sunflower how can this be acheived?
With regard to user activity in the whole users will be fixed but their will be floaters such as managers and the owners that may at times float from one office to the other and would beneift from logging into any machine and getting their profile.
I have thought about VPN's as I have acheieved this type of setup with Microsoft server products, I have found speed issues in some cases, how can this be acheived using OS X, are there any how to docs around? In the Microsoft setup I acheived this using netgear VPN Firewalls which ofcourse adds an overhead, can this be acheived using OS X propietary VPN software?
So ultimatley I would prefer to have the one domain without subs "sunflower.com" and users to be able to login to their profiles from either location. The main location now will remain as headoffice and the primary location and the new will be satelites.
I hope that covers all of your other question, again many thanks for your comments and time.
Kind Regards
Anthony -
How to setup Mail Server in Lion
I'm wondering how to setup the mail server if I have a website that is being hosted by a site like go daddy. I really have no IT experience and wanted this server to help my company get organized and on track. So far I have been able to get the VPN and File Sharing working. My next steps are the mail server and iCal. Thanks for the help it will be greatly appreicated!
Well, it depends heavily on what operating system you're using, what mail server you're trying to install, your network topology, etc. Realistically, this is a question that is probably better asked in a forum for whatever mail server you're trying to install...
Justin -
i need help on how to setup my mail server for my company. i just dont know how and i have a domain setup please please help me
thanks,
CEO Jared Longston (sorry for being unprofessional in this message)IT's a fairly straight-forward process:
Install Server app from AppStore.
Install Server Admin Tools 10.7.
Turn Email services on in Server app.
Configure Email service specifics in Server Admin.
The following resources should help you with the specifics:
https://help.apple.com/advancedserveradmin/mac/10.7/
http://www.maclife.com/article/howtos/how_install_and_set_mac_os_x_lion_server
Hope this helps a little. Sorry that I didn't get more into specifics, but your question is quite broad.
~Mike -
Mail server - smtp configuration questions
i'm having a bit of trouble getting clear on how mail configuration works, in particular the settings relating to smtp.
here are some questions i hope someone help with:
1. am i correct that settings made on the the settings>relay tab apply only to when my server is used as a relay - and therefore would not apply to general incoming smtp connections when another server connects to mine for delivery to locally-hosted domains?
2. there are three settings on the settings>relay tab. basically they are: "accept relays only from the specified addresses", "refuse all messsages from the specified addressses", and "use these rbl servers". the first two can seemingly each be separately enabled/disabled in addition to being configured with one or more addresses. my question is what happens if neither of the first two is checked (enabled)? does my server accept relay connections from anywhere? or does it accept no connections at all?
3 on the settings>general tab, there is a checkbox to enable smtp... one would assume that if this is unchecked, that this would disable all incoming mail AND smtp relay, yet it seems i can have this unchecked and i can still configure smtp relay on the settings>relay tab, so that seems odd - am i missing something?
4) on the same tab, it asks for a domain name and a host name. how are these used? what is the difference between the two? does it matter if my host accepts mail for multiple hosts (via host aliases - configured via settings>advanced>hosting>local host aliases)?
5) i want my server to accept mail to anywhere from authenticated users (i.e. users on my network who are sending mail to random other places). i want my server to accept inbound mail (to users on my locally-hosted domains) from any server without requiring authentication. my guess is that this is a pretty common or standard config. i am confused by the settings>advanced>security tab, where i can seemingly allow certain types of authentication.
5a) what are the semantics of the multiple check boxes for the different types of auth? if i select only one, does it mean that my server will require that specific type of auth? if i select more than one, does it mean that my server will select any of the specified types? what if nothing is checked - is that how you tell it to allow unauthenticated users to connect?
5b) do the above auth settings apply both types of incoming smtp connections i described above? how can i configure it so as require smtp authentication from clients but not from servers connecting from other networks to deliver mail to my domain?
thanks in advance.I went to http://www.google.com and did a search for "smtp server" and the second entry it returned was this:
"PostCast Server - free outgoing SMTP e-mail server
... notifications to your customers, as well as for sending individual messages. You
can use it instead of the SMTP server of your Internet Service Provider. ...
Description: Enables you to send e-mail directly from your computer, without your Internet Service Provider's server.
Category: Computers > Software > Internet > Servers > Mail
www.postcastserver.com/ - 33k - Cached - Similar pages "
The Internet is a great resource, isn't it? -
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']=' ';
$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. -
Help with Mail Server Setup/DynDNS
I don't have a static IP so I setup an account/registered a domain with DynDNS. The test site is hosted fine via Leopard Server. However, I am trying to setup a mail server to no avail. Configured Mail Server through the assistant and ended up with these settings: domain name - performa460.com hostname - mail.performa460.com POP, IMAP, and SMTP all enabled. Setup a user in workgroup manager and enabled mail. Still Cannot access mail through Mail.app and no users are listed on the Maintenance/Accounts pane. Obviously I'm new to this and need to be pointed in the right direction. Any help is apreciated; thanks!
DynDNS's base service won't work for you if you want to use your own full domain name unless you use their Custom DNS paid service. I'm assuming this is something you've already done. If so, you need to configure both the host name and the MX records for your domain to point to the right places. You'll need to set up DynDNS name servers through whatever domain registrar you use and then configure the CustomDNS service through DynDNS's web interface. Once you can successfully connect using a web browser, then look into your mail settings.
However, depending on what provider you're using for your broadband, you may have the mail ports blocked by your ISP and/or in your cablemodem/router. Be sure to open 25 and 587 and any other ports you intend to use.
Finally, you may find that even if you've configured everything correctly, other providers will refuse your mail as spam (google, yahoo, etc) because your IP address is on a "residential subnet" or because your forward and reverse DNS don't match. That means you'll need a mail reflector to bounce your mail off of with a proper IP. DynDNS has inbound and outbound mailhop services that you can use for an additional fee.
Bottom line is, because spambots inhabit a lot of dynamic IP blocks, you have to jump through a ton of hoops to get it working reliably. -
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?
-
Xserve mail server: setup postfix to ignore/delete undeliverable mail
Hi,
I've trouble with mail server on Leopard 10.5.8@xserve, that many mails has unknown recepients. In ServerAdmin I may set only copy undelivarable mail to existing mail. But I want delete this. There are some way as manually configure postfix?
Thanks.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. -
Home mail server setup help.
I admit that I am pretty much clueless when it comes to setting up a mail server.
The setup:
I have a local network at home with about 5 computers. Inside the network we have a router, a store-brought one that has bulit in DSL modem and wireless. It is out central DNS server and provides us with a local network domain name. Then we have a domain for the outside world to see us. Let's just call it "shadow.dot.com". I opened up the ports on the router to allow in port 80 and all POP3 addresses. I installed apache, php, mysql, and postfix on my Linux machine. I used webmin to configure postfix. Users can recieve emails, let's say from my hotmail account to [email protected] However, when I use webmins view usermail feature fromt he postfix area, I click on a user, then compose but my home local domain is listed instead of my shadow.do.com domain. I had in the configuration to place that outside domain in the address. Well, either way, I cannot send a message. It remains in the message queue and refuses to send.
I do not have smtp ports open because I want this secure. I only want to be able to send email from inside my local network. This way there is no chance at someone hacking my smtp part and sending tons of email spam with my address.
For this setup, what do I need in my main.cf configuration file? Can someone just put all the options in there that I need so I can copy and paste for the most part? I need to be able to send out, and I also need PHP to use it to send email to people. Do I need to unblock smtp? Do I need to change any settings with PHP or will it use postfix by default?
Thanks.There is a send mail queue that is viewable via webmin. I don't know if it errored or not, it just stayed in the queue and never sent.
I uninstalled postfix and then reinstalled it with default configs again. I modified a few settings to reflect my outside domain. Then I set up sasl to log into my ISPs mail server. Not mail sorta sends. Some PHP scripts still have trouble with it. I guess I need to fix those manually because some PHP scripts work and some don't so it might be an error with the script itself.
Mail is only sent via smtp via port 25, not recieved. Recieving port is in the one hundreds. That is the only port needed to be open for recieving of mail.
Thanks for you tips. I have I dynamic IP so liem clued me in on what to do. I don't know if it was a combination of bad config and dynamic IP, but it sorta works now, so I guess have more tweaking to do.
Maybe you are looking for
-
Hello everybody. I recently bought a new Mac Pro (2x Quad-Core Intel Xeon, 2,4GHz, running OS X 10.6.8) and just encountered a very strange error at bootup. 1 out of 10 system boots take up much longer and end up in having the desktop with a light bl
-
So is it possible to tell iSync to *only* make changes to the device
I have been going through much agony trying to sync: My address book Google contacts iPod Touch Motorola L6 (I wanted to even try my Blackberry but that may be asking too much) Everything seems to work more or less okay until I bring in the Motorola.
-
How do you type on a text transition on Final Cut Pro X?
I am having trouble figuring out how to type on the ink splats title. Please give instructions that include where the buttons are, as I am just starting to use Final Cut Pro X.
-
Image resizing not looking as good as MS Paint?
I can't figure out why, but for some reason Paint makes my resized images look better than Photoshop when saved. I've messed around with Photoshop's Image Size/Resampler, but none of the options I have used seem beat the quality I am seeing from Pain
-
Movie rental did not work. Next step?
My rental from the iTunes store was unable to complete. 25 minutes in it stopped and I could not skip past. Does anyone have any suggestions as to reimbursment or how to finish the movie?