On 9/27/2012 9:19 AM, FAHIM wrote: > Dear All, > Can someone please help me to make my own SMTP server for office using > post fix or sendmail. > > Thanks >
I built my webserver in 2005 and it is still up and running fine. I used the OpenBSD operating system installed in a SuperMicro 1U rack-mount machine with dual SCSI hard drives, set in a 'mirrored' configuration, so that if one of the hard drives failed, the other HD would retain an exact copy of the HD contents. One does not, to the best of my knowledge, simply set up SMTP (sending mail), one sets up an entire webserver, with pop, smtp, websites, and whatever other bells and whistles one requires, to support the entire website, and the people who will be using the services. In order to send and receive email to the world, you require a static IP address for the website. I lease 5 static IP addresses from ATT, and associate my various website names with the static IP addresses. Sendmail is built into the OpenBSD operating system. I did not have to do any modifications to sendmail itself, but I did have to modify nine 'etc' files and create three additional files to handle my server logs, which get created every day, and have to be disposed of on a regular schedule. Below is a copy of an email I sent in 2006 that covers the exact steps I performed, including what has to be done on your registrar's website... in my case, Network Solutions and GoDaddy. Naturally, if you are using a Linux Distro, details will vary, but the overall process is pretty much the same for setting up any web server. ------------------------------------ Subject: Re: sendmail From: Robert C Wittig <[email protected]> Date: Thu, 27 Jul 2006 06:36:08 -0500 To: "David B." <[email protected]> CC: [email protected] If any of you old timers see any errors in my suggestions, please point them out. I am fairly new myself, and my two mailservers have been running fine for 6+ months with this setup, but I still have a LOT to learn. David B. wrote: > sorry to bother, can anyone suggest a definitive book I should buy on how to set up Sendmail on Openbsd 3.8? I didn't need a book. What I did was: logged in as root... 1) /etc/inetd.conf uncomment both pop3 lines ...so you can retrieve email from your Desktop machine, with Thunderbird or any other POP3-type email reader. restart inet.d kill -HUP `cat /var/run/inetd.pid` ...then make sure pop3 is present in /etc/services 2) /etc/rc.conf confirm that '-bd' is before -q30m on sendmail flags line then, change 'localhost.cf' to 'sendmail.cf' ...this permits sendmail to send and receive on the Internet, instead of just on your local machine. then, use the command # crontab -u root -e to open root's crontab file, and comment out the sendmail line '/30** etc. 3) /etc/mail/virtusertable add some email users accounts... but first, you have to create actual user accounts, in /home, if they do not already exist: [email protected] user1 [email protected] crazyname ...then rebuild the database with the command included in the comments in the virtusertable. 4) /etc/mail/aliases If you want to receive email for root, and the other machine identities, on one of your accounts from the virtusertable, add that user to the aliases file, so that root, etc., email will be retrieved along with user1 or crazyname's email... nice for seeing your various logs, every morning. 5) /etc/mail/local-host-names Unless you are accepting email for other machines, IIRC, you should not have to add anything to this file. > They don't seem to explain how to "name" the server either. My URL will be quikadz.com, and I can turn on port 25 in my firewall (smoothwall) and forward it to the internal IP, but how do I tell the server it's supposed to accept the email for quikadz.com? You name your machine when you are installing the operating system, by giving it a Fully Qualified Domain Name, like webserver.robertwittig.net In order to do this, you must have already purchased the domain name. Also, you will have to then go to your Registrar (GoDaddy, Network Solutions, etc), and configure the mail settings, so that they point to the machine, like: Priority Host Goes To TTL 0 @ webserver.robertwittig.net 3600 ...but with your machine name. > anyway, so I don't waste anyone's time asking a bunch of beginner questions back and forth, any suggestions on a book to buy would help tremendously. I do own the O'Reilly book 'Sendmail', but that book really is for sendmail hackers... people who mess with the internal stuff that sendmail does, which is far more complicated than what is required to just set the application up to send and receive email. -- -wittig http://www.robertwittig.com/ . http://robertwittig.net/ -- http://www.robertwittig.com/ http://robertwittig.net/ http://robertwittig.org/ . ------------------------------------ To unsubscribe from this list, please email [email protected] & you will be removed.Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/LINUX_Newbies/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/LINUX_Newbies/join (Yahoo! ID required) <*> To change settings via email: [email protected] [email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
