Mail Server
Mail Server
BOSSServerFeatures
Kernel MailServer File&PrintServer WebApplicationServer DatabaseServer SMSGateway VirtulizationServer RemoteServerAdministration SystemMonitoring BackupServer ProxyServer NetworkServer
Kernel
Kernelversion2.6.223486 Supportsmultipleprocessors 32bit&64bitArchitectures supportsmorethan4GBofRAM
MailServer
Postfixversion2.5.51.1 SMTP ,LMTPprotocolsupport SASL&TLSsupportforencryptedconnection Multipledatabasesupport(SQL,MySQL,LDAP) Virtualdomainssupport
File&PrintServer
SAMBAversion3.2.31 NFSversion1.1.26 ProFTPversion1.3.114
WebApplicationServer
ApacheServerversion2.2.97 SupportsLanguages Perl5.10.014 PHP5.2.63 Python2.5.211
Tomcat(JAVATechnologies)
DatabaseServer
Postgresql8.3.31 MySQL5.0.51a15
Security
Openssl0.9.8g13 iptables1.4.1.13
RemoteServerAdministration
Openssh5.1p12 VNC4.1.1
BackupServer
Bacula
NetworkServer
DNSbind99.5.0 DHCP3.1.13
ProxyServer
squidversion2.7
LDAP
OpenLDAP slapd2.4.103
Cloud
CloudComputing
Storage
Lvm2lvm2.02.392
GUItools
Webmin(Webbased) MRTG gadmintoolsupportsDNS,DHCP ,FTP ,rsync,samba,squid wireshark(SecurityAuditing) pgadmin,phpmyadmin,mysqladmin
MailServer
MailServer
RelaymailsbetweentheServer Sendmail,qmail,postfix MUA MDA(IMAPorPOP) MTA(SMTP) MSA
MTA
Postfix
Packages postfix courierimap libsasl22 sasl2bin ConfigurationFiles /etc/postfix/main.cf /etc/postfix/master.cf Service /etc/init.d/postfixstart /etc/init.d/postfixreload /etc/init.d/postfixrestart /etc/init.d/postfixstop
ConfigurePostfix #postconfe"mydestination=
server1.cdacchen.in,localhost.cdacchennai.in,localhost,cdacchen.in"
Testingthemail
WorkingExample
Postfix+sasl+TLS+Maildirformat
StatusCodes
TestingCourierPOP3
TestingCourierIMAP
ScripttocreateuserandtheirMaildirformat #viuser_maildir #!/bin/bash func() { user=$1 /usr/sbin/adduser$user /usr/bin/maildirmake/home/$user/Maildir /bin/chownR$user:$user/home/$1/Maildir /bin/chmod3777/home/$user/Maildir } func$1 Runthescript ./user_maildirashok
Configurethemailboxformat #postconfe"home_mailbox=Maildir/ #postconfemailbox_command="" Newmailin/home/username/Maildir ConfigurePostfixtodoSMTPAUTHusingSASL(saslauthd) #postconfe'smtpd_sasl_local_domain=' #postconfe'smtpd_sasl_auth_enable=yes' #postconfe'smtpd_sasl_security_options=noanonymous' #postconfe'broken_sasl_auth_clients=yes' #postconfe'smtpd_recipient_restrictions= permit_sasl_authenticated,permit_mynetworks, reject_unauth_destination' #postconfe'inet_interfaces=all'
Edit/etc/postfix/sasl/smtpd.conf #vi/etc/postfix/sasl/smtpd.conf
pwcheck_method:saslauthd mech_list:plainlogin
ConfigurePostfixtodoTLSencryptionforboth incomingandoutgoingmail
sudopostconfe'smtp_tls_security_level=may' sudopostconfe'smtpd_tls_security_level=may' sudopostconfe'smtpd_tls_auth_only=no' sudopostconfe'smtp_tls_note_starttls_offer=yes' sudopostconfe'smtpd_tls_key_file=/etc/ssl/private/smtpd.key' sudopostconfe'smtpd_tls_cert_file=/etc/ssl/certs/smtpd.crt' sudopostconfe'smtpd_tls_CAfile=/etc/ssl/certs/cacert.pem' sudopostconfe'smtp_tls_key_file=/etc/ssl/private/smtpd.key' sudopostconfe'smtp_tls_cert_file=/etc/ssl/certs/smtpd.crt' sudopostconfe'smtp_tls_CAfile=/etc/ssl/certs/cacert.pem' sudopostconfe'smtpd_tls_loglevel=1' sudopostconfe'smtpd_tls_received_header=yes' sudopostconfe'smtpd_tls_session_cache_timeout=3600s' sudopostconfe'tls_random_source=dev:/dev/urandom' sudopostconfe'myhostname=server1.example.com'
Restarttheservice #/etc/init.d/postfixrestart
Testing
telnetserver1.cdacchen.in25 Trying192.168.36.242... Connectedtoserver1.cdacchen.in. Escapecharacteris'^]'. 220server1.cdacchen.inESMTPPostfix ehloserver1.cdacchen.in 250server1.cdacchen.in 250PIPELINING 250SIZE10240000 250VRFY 250ETRN 250STARTTLS 250AUTHPLAINLOGIN 250AUTH=PLAINLOGIN 250ENHANCEDSTATUSCODES 2508BITMIME 250DSN quit 2212.0.0Bye Connectionclosedbyforeignhost.
ThankYou
AshokKumarJ ashokk@cdac.in