[opensuse] Setting up a mail server
I am attempting to set up a mail server on a local Suse 10.3 box. I am totally lost!! Have tried to follow the info at: http://en.opensuse.org/Mail_server_HOWTO but, being a bit thick, haven't succeeded.... If I am setting up a local server, do I need fetchmail, etc?? I may be wrong (prob am!), but this info seems to be mostly client oriented, not server....?? What programs are actually needed, just to set up the server, (initially, just internally) and how do you then connect your clients to the server?? Sorry if I'm being a bit slow..... John. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
John wrote:
I am attempting to set up a mail server on a local Suse 10.3 box. I am totally lost!! Have tried to follow the info at: http://en.opensuse.org/Mail_server_HOWTO but, being a bit thick, haven't succeeded....
If I am setting up a local server, do I need fetchmail, etc?? I may be wrong (prob am!), but this info seems to be mostly client oriented, not server....??
What programs are actually needed, just to set up the server, (initially, just internally) and how do you then connect your clients to the server?? Sorry if I'm being a bit slow.....
You're saddling the horse from the wrong side. The first thing you need to do is to define what services should be available for what clients, everything else will follow that design. The usual questions are: Does this server accept mails directly from the internet? - requires fixed ip and official domain name possible but not recommended is a dialup with dyndns account Does this server provide mail services for internal LAN users only or does he relay for internet users? - in that case you have to set up smtp authentication Do you require Webmail? - that would need an imap server to connect to Is this a private server only for your amusement or do you want to set up a company mailserver? -- Sandy List replies only please! Please address PMs to: news-reply2 (@) japantest (.) homelinux (.) com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Sandy Drobic wrote:
John wrote:
I am attempting to set up a mail server on a local Suse 10.3 box. I am totally lost!! Sorry if I'm being a bit slow.....
You're saddling the horse from the wrong side. The first thing you need to do is to define what services should be available for what clients, everything else will follow that design.
The usual questions are:
Does this server accept mails directly from the internet? - requires fixed ip and official domain name possible but not recommended is a dialup with dyndns account Well, yes I would like it too.... have a dyndns account with an adsl connection... Does this server provide mail services for internal LAN users only or does he relay for internet users? - in that case you have to set up smtp authentication Internet users....
Do you require Webmail? - that would need an imap server to connect to That would be nice...
Is this a private server only for your amusement or do you want to set up a company mailserver? For learning, with a bit of amusement thrown in... :-)
Yep, it is mainly for learning purposes, also playing with web forms etc etc... -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
John a écrit :
Yep, it is mainly for learning purposes, also playing with web forms etc etc...
If you happen to read french http://fr.opensuse.org/Formation_d'administrateur_Baby/serveur_avancé/SA03-Cours_et_TP/1 jdd -- http://www.dodin.net http://clairedodin.voices.com/ http://www.clairedodin.com/ http://claire.dodin.net/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Wednesday 2008-03-05 at 13:03 +0100, jdd wrote:
John a écrit :
Yep, it is mainly for learning purposes, also playing with web forms etc etc...
If you happen to read french http://fr.opensuse.org/Formation_d'administrateur_Baby/serveur_avancé/SA03-Cours_et_TP/1
cer@nimrodel:~> ls /usr/share/doc/howto/en/txt/ | grep -i mail Mail-Administrator-HOWTO.gz <=========== Mail-Queue.gz Mail-User-HOWTO.gz Mail2News.gz Offline-Mailing.gz Outlook-to-Unix-Mailbox.gz Qmail+MH.gz Qmail-ClamAV-HOWTO.gz Qmail-VMailMgr-Courier-imap-HOWTO.gz Sendmail+UUCP.gz Sendmail-Address-Rewrite.gz VMailMgr-HOWTO.gz - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFHzpJstTMYHG2NR9URAvhZAJ4vMHwsN358Uo21Gq1YDOI0ZeN1CwCfanHo wXtYi659/d6WvqXKXbBQNtE= =dwOI -----END PGP SIGNATURE-----
jdd wrote:
John a écrit :
Yep, it is mainly for learning purposes, also playing with web forms etc etc...
If you happen to read french http://fr.opensuse.org/Formation_d'administrateur_Baby/serveur_avancé/SA03-Cours_et_TP/1
jdd
'fraid not.... Translation?? John -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Wednesday 2008-03-05 at 21:42 +1000, John wrote:
Does this server accept mails directly from the internet? - requires fixed ip and official domain name possible but not recommended is a dialup with dyndns account Well, yes I would like it too.... have a dyndns account with an adsl connection...
The problem is that most servers will refuse to accept your email. And some will accept it, then discard it silently - for instance, opensuse list server does this sometimes. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFHzpMYtTMYHG2NR9URAmq+AJ4paq2VmuEGPX9li4swW3GqKof3dACeMBuf y2/csh2f/UmZXUvEkjfxdVc= =5u14 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
John wrote:
Sandy Drobic wrote:
John wrote:
I am attempting to set up a mail server on a local Suse 10.3 box. I am totally lost!! Sorry if I'm being a bit slow.....
You're saddling the horse from the wrong side. The first thing you need to do is to define what services should be available for what clients, everything else will follow that design.
The usual questions are:
Does this server accept mails directly from the internet? - requires fixed ip and official domain name possible but not recommended is a dialup with dyndns account Well, yes I would like it too.... have a dyndns account with an adsl connection...
In that case you probably won't have much problems receiving mails, but to send mail you will have to use a relayhost because the majority of remote mailservers will refuse to accept mail from a client with a dynamic ip. Of course, the server should be running 24/7, and either the server is directly connected to the internet or, if set up behind a NAT router, you will need to forward port 25 to your mailserver. You should also check that your isp allows you to receive/send mails on port 25 tcp. Some providers have started to block dynamic clients from that port (yes, even RECEIVING on port s25 :-/ ).
Does this server provide mail services for internal LAN users only or does he relay for internet users? - in that case you have to set up smtp authentication Internet users....
Do you require Webmail? - that would need an imap server to connect to That would be nice...
Is this a private server only for your amusement or do you want to set up a company mailserver? For learning, with a bit of amusement thrown in... :-)
Yep, it is mainly for learning purposes, also playing with web forms etc etc...
In that case you (at least) need the following services: - Postfix (SMTP) - fetchmail (for polling remote pop/imap accounts) - UW-Imap/Courier/Cyrus/Dovecot (IMAP, Webmail) - Apache (Webmail, Monitoring of Services) - Squirrelmail (Webmail) - saslauthd (Authentication) Take the time to understand the basic concepts of Postfix, so you won't set up the next abused spamzombie. http://www.postfix.org/BASIC_CONFIGURATION_README.html http://www.postfix.org/STANDARD_CONFIGURATION_README.html http://www.postfix.org/SOHO_README.html In case of trouble have a look at: http://www.postfix.org/DEBUG_README.html Especially, when you have questions: http://www.postfix.org/DEBUG_README.html#mail -- Sandy List replies only please! Please address PMs to: news-reply2 (@) japantest (.) homelinux (.) com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
John wrote:
I am attempting to set up a mail server on a local Suse 10.3 box. I am totally lost!! Have tried to follow the info at: http://en.opensuse.org/Mail_server_HOWTO but, being a bit thick, haven't succeeded....
If I am setting up a local server, do I need fetchmail, etc?? I may be wrong (prob am!), but this info seems to be mostly client oriented, not server....??
What programs are actually needed, just to set up the server, (initially, just internally) and how do you then connect your clients to the server?? Sorry if I'm being a bit slow.....
John.
I set up my own mail server, to receive mail from a POP account, using fetchmail and the UW IMAP mail server. It works fine. Perhaps if you describe the issues you're having, we might be able to help. You use fetchmail to act as a POP client, to download mail from an ISP to your system. -- Use OpenOffice.org <http://www.openoffice.org> -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hi John, John wrote:
I am attempting to set up a mail server on a local Suse 10.3 box. I am totally lost!!
Don't attempt to do it, just do it :) This is a LOONG, hopefully informative reply.
Have tried to follow the info at: http://en.opensuse.org/Mail_server_HOWTO but, being a bit thick, haven't succeeded....
If I am setting up a local server, do I need fetchmail, etc?? I may be wrong (prob am!), but this info seems to be mostly client oriented, not server....??
What programs are actually needed, just to set up the server, (initially, just internally) and how do you then connect your clients to the server?? Sorry if I'm being a bit slow.....
OK, Sound like you were as confused as I was when I wanted to set one up. Basically the process goes like this, and the OP and I would appreciate corrections: You need to decide what the purpose of your email server is going to be besides fun i.e. is it just going to act as a receiving gateway for mail when it is connected to the internet i.e. POP or is it going to be an IMAP store of your mail so that you can keep information ad-infinitum. POP is what most M$ clients do and whilst you can stick with it, mail can then only be accessed from a single computer that the mail is read on. If the machine you use to read the mail dies all the email you have religiously kept becomes expensive Japanese smoke. :) IMAP allows a machine to act as a store and you can access it from any machine on the same network i.e. your dad's laptop. If your dad's laptop dies, all your email is still safe on your IMAP server. If the IMAP server fails the email can become expensive Japanese smoke so it is wise to keep a regular backup to an external device. The cost of having an IMAP server permanently(24/7/365) connected to the internet with its own IP address is EXPENSIVE.(ask any company as the ISP needs to advise the on-line world that any email to your email address must be sent to a specific IP address. As ISP's already have their own IP addresses for their own mailservers, My suggestion would be to have a single POP email account with an ISP and fetch your mail from it onto your IMAP server from time to time. This doesn't require any large expenses as it is what most folk worldwide have i.e. a POP email account with an ISP. This allows you to decide when to connect to the internet if you do not have a permanent connection as the ISP will store your mail, up to the size of your mailbox, for you until you come and fetch it. Once you have decided this the next question is what 'services' do you want for your email i.e. anti-virus, spam checking etc. Most decide to do both antivirus and spam checking as no one says a carefully crafted email SPAM cannot contain a virus. With both protection options you identify, and can act on, the offending mail twice. Next question is how is the email going to be stored i.e. what form as there are several IMAP programs available that each basically do the same thing but possibly slightly differently i.e. Courierimap and '.......'( what ever it is called. Right now you have figured out the main bits you need to decide on what software to install to accomplish your goal. Basically you need a program to fetch the mail from the ISP. Linux provides Fetchmail which needs installing. Fetchmail then 'hands' the mail to a program called Postfix who is the main enchilada and also needs installing. Postfix sees that the mail needs scanning for virii and spam so it sends the email to amavisd which also needs installing. Amavisd is the program that manages the antivirus(antivir/avg) and the spam software(clamav). When finished it 'hands' the email back to Postfix. Postfix checks there is nothing else to do i.e. sorting and then forwards the mail to the IMAP store software(possibly courier-imap or cyrus-imap or whatever), which also needs installing. You can then use a PC in the same network as the IMAP server to view the IMAP email store. What program you use to view the store is up to you as you can use a web browser, Thunderbird and the host of other email clients out there, provided they are configured to access the IMAP store machine. Messages you delete on the PC are actually deleted from the IMAP store and much like deleting POP email there is no way to recover it once it has been purged from the Trash bin. If you now go to another machine you will be unable to access those same messages as they have been deleted from the IMAP store, but you can continue reading your other different email. Regards Hylton -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri, 2008-03-07 at 18:36 +0200, Hylton Conacher (ZR1HPC) wrote:
Hi John,
John wrote:
I am attempting to set up a mail server on a local Suse 10.3 box. I am totally lost!!
Don't attempt to do it, just do it :) This is a LOONG, hopefully informative reply.
Have tried to follow the info at: http://en.opensuse.org/Mail_server_HOWTO but, being a bit thick, haven't succeeded....
If I am setting up a local server, do I need fetchmail, etc?? I may be wrong (prob am!), but this info seems to be mostly client oriented, not server....??
What programs are actually needed, just to set up the server, (initially, just internally) and how do you then connect your clients to the server?? Sorry if I'm being a bit slow.....
Hi John, I would definitely look into using amavisd-new (http://www.ijs.si/software/amavisd/), a very good virus/spam protection framework. There are many sites that have instructions for doing this. http://flurdy.com/docs/postfix/ http://howtoforge.com/amavisd_postfix_debian_ubuntu http://www.freespamfilter.org/FC4.html These are not openSUSE instructions, but can be used as a general guideline. Regards, Michael Smith -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (7)
-
Carlos E. R.
-
Hylton Conacher (ZR1HPC)
-
James Knott
-
jdd
-
John
-
Michael Smith
-
Sandy Drobic