New Mail server setup
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
--j
There 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
Similar Messages
-
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 -
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. -
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. -
Newie Mail server and running other services
We have a small office network of 6 macs that connect to a Panther server, this server provides DNS and file sharing and thats about it a Filemaker Sever and Retrospect Server. I doesn't suffer from heavy use
I have been using a a separate mac to run Quickmail server 1 (os9) and I need to upgrade it as some of the mail protocols are out of date.
We have a static IP address assigned to our mail gateway by our service provider.
My question or advice
Should I just start using OS X server to run mail services
or
Upgrade Quickmail and continue running it separately on a new mac mini (or similar)
My concerns are at the moment any problem with email locally can be solved pretty much without effecting the other server or the network.
ThanksThe basic setup is prety simple...
Replace following with your own equivalents...
Domain name: woopee.com (the domain name after the "@" in your emails)
Host name: mail.woopee.com (the hostname your MX record points to. Does not need to match server hostname. This will be the hostname mail server uses when communicating with other servers)
Local Host Aliases: woopee.com (a list of the domains you want to accept mail for. Probably just same as Domain name?)
Local network: 192.168.10.0/24 (LAN IP range for local users. Used to bypass authentication when they send mail out)
Server Admin-> Mail-> General...
Tick:Enable POP
Tick:Enable IMAP
Tick:Enable SMTP, Allow incoming mail, Enter Domain name & Host name (from above).
Mail-> Relay
Tick: Accept SMTP relays... Enter localhost IP: 127.0.0.1/32 and Local network (from above).
Tick: Use these junk mail rejection servers. Add: zen.spamhaus.org
Mail->Filters
Tick: scan for junk mail. Minimum score: 5 (can be reduced later)
Junk mail should be: Delivered (will just tag and forward to recipient)
Tick: Attach subject tag: * Junkmail *
Tick: Scan email for viruses
Infected messages should be: Deleted
Tick: update junk mail & virus database: 1 time per day
Mail->Advanced->Security
SMTP: none (this prevents smtp authentication from anyone outside your Local network)
IMAP: Tick: Clear, Plain, Cram-md5 (or leave all unticked if only using pop accounts)
POP: Tick: APOP
Mail->Advanced->Hosting
Local Host Aliases: Add: localhost & woopee.com (separate entries, see Local host aliases, above)
That's it (I think ...although I cannot guarantee I have not missed something). There will be no problem setting this up and seeing it going whilst still using the existing mail server. Set up client accounts to send and receive from new server and you can send mail around internally to test. Last thing would be to change your firewall port-forwarding for SMTP from existing server to new one.
Watch the mail.log in Console for any errors & do plenty tests.
Ensure users have mail enabled in Workgroup Manager.
There are plenty mods available beyond this. Have a good read through the mail services manual (I know its a bit confusing at times) and you should see where the above settings fit in.
Lots of stuff on the forum here which you can search for. Spam filtering in particular can be made far more effective but requires editing of the underlying unix configuration files - again, plenty of previous discussions about that on forum. Meantime, the zen.spamhaus.org RBL will filter out a great many spammers.
-david -
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. -
we are in the process of setting up a SL mail server and have pretty much everything running nicely, except mail.
our setup is as follows:
• previous email provider mx records are still active but have allocated higher priority to new server's mx record and according to the ISP those changes have since propagated;
• billion router as dhcp server for a shared studio space/network (same subnet for a variety of parties - we know not good, but since we need to share printers, etc. the only easy way to do so!), allocating a static IP to our new server with all necessary ports forwarded as well;
• DNS configured and running, does reverse lookups and added mail.example.com as A record;
• webmail works, i.e. we can login with a test users credentials;
we experience 2 problems:
1. incoming emails to an activated account get rejected with a 550 error message, still indicating our previous mail providers nameservers;
2. currently only SMTP seems to be working, i.e. we can send emails from external clients but strangely not from the server itself using mail.example.com (it does work using the servers internal IP address though);
3. if we telnet into mail.example.com from outside the studio we get connected, but internally again this only works with the IP address;
as we have trawled the net for some clues and unsuccessfully tried various things, we are beginning to wonder if something on the router is interfering.
any help or thoughts much appreciated.
ds.If you can't access your server using the domain name mail.example.com it sound to me like you have a dns problem.
When you ping your server's mail.example.com from your internal network what ip are you getting?
Are you getting a your server's internal ip or external ip? -
David Wiese wrote:
just out of curiosity why are you doing imap for 80 users? Was this for cost reasons?
another way is to use hosted exchange, $4/ month per mailbox
That was my thought too...
Is there no Office licencing? Even if you want to avoid Exchange, MDaemon with the Outlook Connector and ActiveSync is a far more pleasant experience than IMAP and Thunderbird.
Is all email currently stored in the POP mailbox, or is it pulled to PST files?
I would investigate using something like MigrationWiz to copy the data between the two servers, so all you have to worry about it updating the server details in the clients. Being clever with DNS, depending on the current setup, might avoid having to do even that.Hi all.This won’t be short…..It seems I can’t find a good guide to migrating to a new non-exchange server solution and go from POP to IMAP in the process. I currently have approximately 80 email users in one location on a UTM device now functioning as email server only that must be retired. The mail service is the basic of all basic. After a lengthy trial, I have purchased Alt-N's mDaemon mail server. My end goal is to have everyone using IMAP (and eventually all the bells and whistles). The current production email server is mail.example.COM with WAN ip of xx.xxx.xxx.66My staged mDaemon server is mail.example.XYZ with WAN ip of xx.xxx.xxx.86 It is now on the same Lan with mail routing correctly to .XYZ. It is AD integrated and everything works for XYZ independently of .COM just nicely. I have tested everything through and all is good...
This topic first appeared in the Spiceworks Community -
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 -
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 -
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. -
Mail server setup in this environment
here's the environment:
- od master on one xserve running 10.5.x, upgraded from 10.4.11
- od replica on second xserve running 10.5.x, upgraded from 10.4.11
- mail server on new xserve with fresh install of 10.5.x
is it enough to have the mail server in this arrangement configured as an od client, just bound to od, or does it also need to be a replica to provide authentication information and for mail to work properly?
with it just bound to od -- whether this has anything to do with it, i'm not sure -- mail was working but not quite as smoothly as hoped. new and existing users could login to webmail, i could enable mail services for the users on the od master or via wgm on the mail server, but i still got some errors in the logs about accounts not having sacl entries for mail, even though they do.
what do you think?thanks. i'll try that. wasn't sure if it was strictly necessary, because most functions seemed to work with the server bound as a client.
-
I just got a FQDN from godaddy and want to add it to DNS As a mail server. Do I create a new zone and set up mail as that as a naneserver? I want to have my Xserve as a mailserver not restrcted to the local network.
Thanks
Message was edited by: macprorocksHi,
firstly, why do you want to set up 2 different domains and have a real, public domain set up and then for internal users to be using a made-up one? The whole process would be a lot easier just to use one domain.
Anyway - I am not a master at Mail servers - I have set up one or two in the past though, and I think I understood your question, so here goes.
You won't be able to receive mail for y.net because you don't own the domain y.net. The internal DNS setting is private, so you can call it whatever you want, but you will need to own a real domain to send and receive mail for that domain.
To set up your server to accept email to the real domain, x.net:
In your ISP's dns, you need to set up an MX record to your real domain, so something like this:
x.net MX 1 86400 mail.x.net
mail.x.net A 1 86400 xxx.xxx.xxx.xxx (needs to be your public IP)
Where possible you should always use A records. This is because using CNAME records mean that the CNAME then has to be resolved, so the action will take longer. I think the DNS 'rules' allow you to use something like 1 CNAME per domain or something like that.
In server admin, you have to enter the server name, so mail.x.net and then enter your domain name - x.net.
Also, yes virtual hosting is for when you have multiple domains on one server. You can save all of the mail into the different folders instead of in one, default folder.
hope it helps
JS
Maybe you are looking for
-
i recently did an up grade on my ipod touch and lost all of my music (1700 songs). all of my music wason my ipod. i have an external hard drive with most of my songs (1400 songs) on it. through playing around and just trying to fiquire it out, i ma
-
Can't Dual-Boot Win7 from Bootable USB
I have a USB that's been formatted correctly by Bootcamp Assistant, and a mounted .iso of Windows 7 on it. I've downloaded all of the support programs that Bootcamp offered, and partitioned the hard drive the same way. I'm currently running OSX 10.7.
-
To read embedded PDF objects in .xlsx file
Hello, We have a requirement to read the embedded PDF objects in excel 2007 file (.xlsx). We tried doing this with the ZIP approach and found that the contents of embedded objects are saved in oleObject1.bin. Now this .bin file is of compound file bi
-
Oracle 9.2 instalation on solaris 8
When I try to start an instance in order to install a new 9.2 database on solaris 8 i get the following errors: SQL> startup nomount pfile="/space/oracle/app/admin/omdb/scripts/init.ora"; ORA-27102: out of memory SVR4 Error: 22: Invalid argument even
-
Can't install KB 2919355 and microsoft says must have the recovery media
I have been trying to install Microsoft's KB2919355 for at least two weeks. I spent two hours in chat with microsoft yesterday and they say now that I need recovery media because I have a corrupted file in my component services. I am running 8.1 pro.