IMAP installation on postfix locally
Hi everybody, I am sending e mails from php to postfix locally on my computer throw a application by using mail() PHP command, i can read the mails with the command: nail -f /var/spool/mail/root However i still not know if imap service is nessesary to read mails from squirrelmail on my computer locally...is ti nessesary?? How do i install imap on my computer if needed?? Thanks in advance for your answers Reagards.-
Hi,
On Thu, 03 Nov 2005 01:29:54 +0000
"JUAN ERNESTO FLORES BELTRAN"
I am sending e mails from php to postfix locally on my computer throw a application by using mail() PHP command, i can read the mails with the command:
nail -f /var/spool/mail/root
However i still not know if imap service is nessesary to read mails from squirrelmail on my computer locally...is ti nessesary??
How do i install imap on my computer if needed??
Squirrelmail only talks IMAP, yes. So you'd need a separate IMAP server (which has nothing to do with postfix, which is a MTA). I can recommend cyrus, but if you only have one account and one folder to check, it's probably way easier to setup uw-imapd instead. If you don't need a full fledged mail system on that PC and just an easy approach to read the mail, another solution would probably be to forward the mail to another mail server. -hwh
Hans wrote: "you'd need a separate IMAP server (which has nothing to do with postfix, which is a MTA). I can recommend cyrus, but if you only have one account and one folder to check, it's probably way easier to setup uw-imapd instead" what are the differences between cyrus and uw-imapd?? is cyrus more complex to setup than uw.imapd?? what other differences?? Can i read and send mails from remote machines by setting up uw-imapd?? any howto link ?? thanks for your answers regards.-
Hi,
On Fri, 04 Nov 2005 02:59:50 +0000
"JUAN ERNESTO FLORES BELTRAN"
"you'd need a separate IMAP server (which has nothing to do with postfix, which is a MTA). I can recommend cyrus, but if you only have one account and one folder to check, it's probably way easier to setup uw-imapd instead"
what are the differences between cyrus and uw-imapd?? is cyrus more complex to setup than uw.imapd?? what other differences??
It's probably a little bit more complex to setup cyrus, at least for a very simple solution.
Can i read and send mails from remote machines by setting up uw-imapd?? any howto link ??
No, you can only read them via IMAP. For sending, you need an SMTP server - which you already have installed (postfix). I don't have a howto-link at hand, but it's as easy as - install xinetd or inetd (probably already installed) - install imapd - to set it up, enable it in xinetd/inetd. imapd probably installs its own config file for xinetd, otherwise put this as /etc/xinetd.d/imap: ---snip--- service imap2 { socket_type = stream wait = no user = root server = /usr/sbin/imapd } ---snip--- this should get you running. If using cyrus, you'd have to reconfigure postfix to deliver to cyrus via LMTP. Using uw-imapd, you don't have to care as it understands the standard Unix mail spool (/var/mail/USER). Note, though, that this spool file is in mbox format and thus isn't suitable for very large amounts of mail - at least not, if those mails are manipulated now and then. -hwh
JUAN ERNESTO FLORES BELTRAN wrote:
Hans wrote:
"you'd need a separate IMAP server (which has nothing to do with postfix, which is a MTA). I can recommend cyrus, but if you only have one account and one folder to check, it's probably way easier to setup uw-imapd instead"
what are the differences between cyrus and uw-imapd?? is cyrus more complex to setup than uw.imapd?? what other differences??
Can i read and send mails from remote machines by setting up uw-imapd?? any howto link ??
thanks for your answers regards.-
Hi Juan Ernesto, Not to confuse the issue, but there are at least 4 good IMAP servers you can choose in Suse. uw-imap Courier Cyrus Dovecot I've been using uw-imap on my production email server for a couple of years. It is easy to set up, and as Hans wrote, it will read your emails in the default /var/spool/mail directory. Courier does the same. Many people on this list use courier, but for some reason I've had problems setting it up. In Suse, the uw-imap package is compiled to only accept login connections encrypted over SSL. This is really not a problem, but a benefit. You can find a very good how to here (written for suse 8.2 but still valid) http://www.davidkrider.com/suse_8.2.php Many people say setting up Cyrus is a bit more difficult, but in suse it is not. I set it up on a test system in a very short time frame, suse make it easy thru Yast. I don't remember the link, but search the archives for a post from Anders Johansson probably back in May or so of this year. Dovecot was pretty easy to set up too, it can be configured to accept imap (nonencrypted port 143) connections, imaps (encrypted port 993) connections, and can handle both mbox and maildir folders. I've been meaning to change my production box from uw-imap to probably Cyrus, but haven't gotten around to it yet. If this isn't enough information to confuse you, have a look at this article... http://www.linuxjournal.com/article/6998 If you are just supporting a few users, you probably won't need to set up the LDAP authentication part if this article, but it does give a good overview of different imap servers and setup. Hope this helps. Jim
Hi everyone I am becoming more familiar with this issue thanks to all of you...i decided to dowload the uw-imap rpm archive in order to install it on my computer, i entered to the following: ftp://ftp.cac.washington.edu/imap/ to download the rpm file and install, however there is a lot of archives and folders and none of them seemes to store what i am looking for...which one of the archives stored there is the one i require?? (it seems i am looking for the imap-2002-45.src.rpm file) On the other hand, could i get it installed from a server by using yast online installation??? any server you recommend or download page to get the rpm?? Thanks for your answers again, and sorry for my dummy doubts and questions. Regards Juan PS: i almots forget it i am working on suse 10 and uw-imap is not provided on the cd`s, is imap-2002-45.src.rpm the file required?? thanks again!!
JUAN ERNESTO FLORES BELTRAN wrote:
Hi everyone
I am becoming more familiar with this issue thanks to all of you...i decided to dowload the uw-imap rpm archive in order to install it on my computer, i entered to the following:
ftp://ftp.cac.washington.edu/imap/
to download the rpm file and install, however there is a lot of archives and folders and none of them seemes to store what i am looking for...which one of the archives stored there is the one i require?? (it seems i am looking for the imap-2002-45.src.rpm file)
On the other hand, could i get it installed from a server by using yast online installation??? any server you recommend or download page to get the rpm??
Thanks for your answers again, and sorry for my dummy doubts and questions. Regards Juan
PS: i almots forget it i am working on suse 10 and uw-imap is not provided on the cd`s, is imap-2002-45.src.rpm the file required?? thanks again!!
I'm not sure about suse 10.0, I'd be surprised if its not included. In 9.3 it is the one simply called "imap", on both the CDs and the DVD. If it isn't on the CD, I've seen recent posts here showing where to download the source rpm's for 10.0, if that's an option. Jim
On Sun, 2005-11-06 at 14:04 -0600, Jim Flanagan wrote:
JUAN ERNESTO FLORES BELTRAN wrote:
Hi everyone
I am becoming more familiar with this issue thanks to all of you...i decided to dowload the uw-imap rpm archive in order to install it on my computer, i entered to the following:
ftp://ftp.cac.washington.edu/imap/
to download the rpm file and install, however there is a lot of archives and folders and none of them seemes to store what i am looking for...which one of the archives stored there is the one i require?? (it seems i am looking for the imap-2002-45.src.rpm file)
On the other hand, could i get it installed from a server by using yast online installation??? any server you recommend or download page to get the rpm??
Thanks for your answers again, and sorry for my dummy doubts and questions. Regards Juan
PS: i almots forget it i am working on suse 10 and uw-imap is not provided on the cd`s, is imap-2002-45.src.rpm the file required?? thanks again!!
I'm not sure about suse 10.0, I'd be surprised if its not included. In 9.3 it is the one simply called "imap", on both the CDs and the DVD. If it isn't on the CD, I've seen recent posts here showing where to download the source rpm's for 10.0, if that's an option.
Jim
Or add the inst_source YaST source and install it that way. http://www.opensuse.org/YaST_package_repository -- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998
You were rigth, i encountered imap can be installed from cd´s... IMap version 2004_c_suse_2 from Washingtong University... Know i will follow your instructions... Regards.-
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Tuesday 2005-11-08 at 00:23 -0000, JUAN ERNESTO FLORES BELTRAN wrote:
i encountered imap can be installed from cd´s... IMap version 2004_c_suse_2 from Washingtong University...
Know i will follow your instructions...
Read "/usr/share/doc/packages/imap/README.SuSE". You will need that (to create the needed certificates). P.S.: By the way, note there is also a Spanish list (suse-linux-s), quite active, if that's easier for you. - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFDcALNtTMYHG2NR9URAq04AKCNm/256NcTcR+Y/R4yF/sA3oHK6QCfUNed 1we2llHhKxnTRlBBWj3UkAQ= =T0rj -----END PGP SIGNATURE-----
Hi, thanks for the suggestion...i did not know spanish mailing list was active... i will subscibe in there too. regards
Hi everyone, I am trying to install the imapd certificate accorddind to explained at: /usr/share/doc/packages/imap/README.SuSE However it says: As the commo name you must either enter the DNS name or IP adress of your mail server... How do i get my mail server (postfix)?? Regards
Hi, i did install imap and typed: cd /etc/ssl/certs openssl req -new -nodes -out -imapd.pem -keyout imapd.pem as explained at README.SuSE file However i still can not read any mails from evolution...i sent a test mail from my php application to my mail account juanflores@linux.site i can read it when typping: nail -f/var/spool/mail/root however evolution does not show me the sent mail... Am i missundestanding or missing any step to configure my client?? i followed as explained at: http://www.davidkrider.com/suse_8.2.php#imap well i must admit i feel like a lost boy jejeje...one important thing is that i left all spaces in blank when editting my certification, only dots for all the options, i thought the computer IP was required but was never asked.. Thanks for helping this confused and lost boy Regards
JUAN ERNESTO FLORES BELTRAN wrote:
Hi,
i did install imap and typed:
cd /etc/ssl/certs openssl req -new -nodes -out -imapd.pem -keyout imapd.pem
as explained at README.SuSE file
However i still can not read any mails from evolution...i sent a test mail from my php application to my mail account juanflores@linux.site i can read it when typping: nail -f/var/spool/mail/root however evolution does not show me the sent mail...
Am i missundestanding or missing any step to configure my client?? i followed as explained at:
http://www.davidkrider.com/suse_8.2.php#imap
well i must admit i feel like a lost boy jejeje...one important thing is that i left all spaces in blank when editting my certification, only dots for all the options, i thought the computer IP was required but was never asked..
Thanks for helping this confused and lost boy Regards
Hi Juan, I"m not sure where you are exactly, but sounds like you can connect. I'm not familiar with evolution, but make sure it is set to connect using SSL (port 993), no TLS. I remember the feeling, but sounds like your close. I also found that if I made a mistake wiht the cert, I had to delete it (and associated files) and re-do it. Just re-doing it didn't work. Hope this helps. Jim
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Tuesday 2005-11-08 at 23:51 -0000, JUAN ERNESTO FLORES BELTRAN wrote:
I am trying to install the imapd certificate accorddind to explained at:
/usr/share/doc/packages/imap/README.SuSE
Complementary info here: http://portal.suse.com/sdb/en/2003/05/imap_ssl.html - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFDcWWQtTMYHG2NR9URAmufAKCSXp0QTpeOWj33qKIJ09qWhzTIhwCfanjE 2lNhOL07NFKAau5vepyKm6Q= =CFEa -----END PGP SIGNATURE-----
Carlos wrote: ">Complementary info here:
http://portal.suse.com/sdb/en/2003/05/imap_ssl.html
- -- Cheers,"
I think the problem is i did not entered any data when creating my certificate I just entered a dot ....as recommended I entered the page in order t read the suplementary info: http://portal.suse.com/sdb/en/2003/05/imap_ssl.html However i am not sure of the fields that must be filled...could anyone help me with this?? Country Name (two-letter code): ?? State or Province Name (full name): ?? Locality Name (e.g., city): ?? Organization Name (e.g., company):?? Organizational Unit Name (e.g., department):?? Common Name (your host name):?? E-mail address:?? I am really not sure what to write at any field?? and it seems the most important is the Common Name (Host name) i am really not sure of this one...all this is becoming really confusing!! My country is : Venezuela but only two Letter Code is required (..??..) State or Porvince: Anzoategui Locality: Puerto la Cruz Organization Name: Telesoft Organizational Unit Name: Engineering Department Common Name: NO IDEA ABOUT WHAT TO TYPE IN THIS FIELD E-mail address: juanflores@linux.site I have already postfix installed on my laptop and it receives mails i send locally on my pc from PHP with mail() command, however it is not possible to read the received mails with evolution (which is the client i have installed). I have only a pair of e-mail address on postfix which is juanflores@linux.site and root@linux.site and I can´t read any of the mails received - do I have to type my IP address in the field Common Name?? - how do I get mi machine´s IP address?? - or can it works if I use Common Name: Linux.site?? - can I recreate the certificate again (in order to fill the fields accurately) by re-using the command cd /etc/ssl/certs openssl req -new -nodes -out -imapd.pem -keyout imapd.pem as explained at README.SuSE file??? Thanks in advance for helping me to figure out this confusing issue.. Regards Juan.-
My country is : Venezuela but only two Letter Code is required (..??..) Correct. Yours is VE State or Porvince: Anzoategui Locality: Puerto la Cruz Organization Name: Telesoft Organizational Unit Name: Engineering Department All these should be as you have them here. Common Name: NO IDEA ABOUT WHAT TO TYPE IN THIS FIELD I would suggest your IP, alternatively it could be your dns name, i.e. imap.yourdomain.net. Mine works with IP. E-mail address: juanflores@linux.site OK, but is that a valid email? You are creating a security certificate
I have already postfix installed on my laptop and it receives mails i send locally on my pc from PHP with mail() command, however it is not possible to read the received mails with evolution (which is the client i have installed). Perhaps it will work with a valid certificate. BTW, was it a typo in your other email, or did you forget the -days <number of days> command. I have only a pair of e-mail address on postfix which is juanflores@linux.site and root@linux.site and I can´t read any of the mails received… No, the email address is to contact you as the one who made this certificate so others could contact you to authenticate the certificate. - do I have to type my IP address in the field “Common Name”?? Yes. - how do I get mi machine´s IP address?? If not a static address, you will need something like www.dyndns.org and should instead use the dns name, since your IP may change. You can get
JUAN ERNESTO FLORES BELTRAN wrote: that you will be asking others to trust. the current address by /sbin/ifconfig (which will show the address of all interfaces.
- or can it works if I use “Common Name: Linux.site”?? If your local DNS is set up properly, and you are only reachable via an internal network, AND Linux.site is what is used for the pop/imap server, then yes. Otherwise, no. - can I recreate the certificate again (in order to fill the fields accurately) by re-using the command cd /etc/ssl/certs openssl req -new -nodes -out -imapd.pem -keyout imapd.pem as explained at README.SuSE file??? Yes, but you should add -days 375 (for a year), which gives it an expiration date. I would also add -set_serial <some number> to make it unique.
-- Joe Morris New Tribes Mission Email Address: Joe_Morris@ntm.org Registered Linux user 231871
Hi everyone, i think finally my certificate has been installed properly, i did: /sbin/ifconfig lo Link encap: Local Loopback inet addr: 127.0.0.1 Mask: 255.0.0.0 inet6 addr : ::1/128 Scope Host RX packets: 434 errors:0 dropped:0 overruns:0 frame:0 TX packets: 434 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:29866 (29.1 Kb) TX bytes:29866 (29.1 Kb) so i assume that my computer IP is 127.0.0.1...so i entered "Common Name: 127.0.0.1" when editing my certificate...did i type the correct parameter?? On the other hand I also edited imap file as explained at http://www.davidkrider.com/suse_8.2.php : Imap imap mail daemon over tls/ssl service imaps { disable = no socket_type = stream protocol = tcp wait = no user = root server = /usr/sbin/imapd server_args = -s flags = IPv4 } . I added the "server_args=-s" as recommended. Finally I typed: .. rcxinetd reload Reload INET services (xinetd). done netstat a inet Active Internet connections (servers and established) Proto Recv Q Send-Q Local address Foreing Address State Tcp 0 0 *:imaps *;* LISTEN Tcp 0 0 *:sunrpc *;* LISTEN Tcp 0 0 *:ipp *;* LISTEN Tcp 0 0 *:localhost:smtp *;* LISTEN udp 0 0 *:filenet-tms *;* udp 0 0 *:fmdns *;* udp 0 0 *:bootpc *;* udp 0 0 *:ipp *;* .. so I assume everything is ok with the installation .right?? however I have not found the way to read any incoming mail with my client Evolution jeje desperately I installed Mozilla Mail client wich is a web based client and started the configuration however I stuck when the system asked the following questions 1.-Select the type of incoming server you are using I entered IMAP 2.-Enter the name of the incoming server (for example, mail.example.net) ?????? 3.-Enter the name of your outgoing server (SMTP) (for example, smtp.example.net) ????? I really dont know what to enter in such fields. I think outgoing server (SMTP) is postfix and I should enter the hostame: linux.site. And probably the incoming server should be my imap server but I dont know its name!! Any help or link to find out?? Really sorry for all these bothering questions but is the only way the get my system working Thanks for your support!! Juan
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Thursday 2005-11-10 at 00:25 -0000, JUAN ERNESTO FLORES BELTRAN wrote:
I really dont know what to enter in such fields. I think outgoing server (SMTP) is postfix and I should enter the hostame: linux.site. And probably the incoming server should be my imap server but I dont know its name!!
localhost. - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFDcqM7tTMYHG2NR9URAup4AJ4nLbWM+dQC3eKUHnDnja8yEDyxvwCfcXQk Lty0r8OrH3wrRG7iRkQ1kKI= =Viy3 -----END PGP SIGNATURE-----
Carlos wrote:
The Thursday 2005-11-10 at 00:25 -0000, JUAN ERNESTO FLORES BELTRAN wrote:
I really dont know what to enter in such fields. I think outgoing server (SMTP) is postfix and I should enter the hostame: linux.site. And probably the incoming server should be my imap server but I dont know its name!!
localhost.
- -- Cheers, Carlos Robinson
then, Outgoing Server: linux.site Incoming Server: localhost that´s it?? Juan
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Thursday 2005-11-10 at 12:40 -0000, JUAN ERNESTO FLORES BELTRAN wrote:
then,
Outgoing Server: linux.site Incoming Server: localhost
that´s it??
Just try it ;-) - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFDc5WatTMYHG2NR9URArqnAJwMZxPF4CBjN/lEmVp5ROxkzPFingCffNC+ JTgshq95+oMvu6YvrtkT1KI= =Tufm -----END PGP SIGNATURE-----
It did work!!! finally i can read the messages sent by php with mail() command. However sending e mails is not possible. I have created just one mail account, and i tried to send an email to myself however i receive the following messagge from Mozilla Mail: "Sending of messagge failed, The message could not be sent because connecting to SMTP server linux.site failed. The server may be unavailable or is refusing SMTP connections. Please verify your SMTP server setting is correct and try again, or else contact your network administrator" Of course the server is totally available, i think probably is refusing SMTP connections. How can i figure this out?? What parameters should i change at postfix configuration files?? thanks for yuor help
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Friday 2005-11-11 at 00:24 -0000, JUAN ERNESTO FLORES BELTRAN wrote:
The message could not be sent because connecting to SMTP server linux.site failed. The server may be unavailable or is refusing SMTP connections. Please verify your SMTP server setting is correct and try again, or else contact your network administrator"
Are you sure you have a server at linux.site? Does your DNS server answer for that name? Does it have an MX entry for same? Have you looked at the /var/log/mail log file of that server? have you read the Mail-Administrator-HOWTO.gz file? - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFDdddotTMYHG2NR9URAg9fAJ0S6NfcYqpK1usmyCZpyMG/7UWc2wCdEcT+ Qeu2Qt5ryoPpm5jahVBu+iA= =AD/w -----END PGP SIGNATURE-----
Hi all of you... thanks for your support!! my system is already working!!!! Regadrs
Read "/usr/share/doc/packages/imap/README.SuSE". You will need that (to create the needed certificates). If you use both imaps AND pop3s, and you access the same server both ways with the same client (i.e. have a pop3 account set up AND an imap set up like I do, pop3 to get my system mail and imap to delete big messages from user accounts), I would suggest adding a " -set_serial <somenumber>" to the command in the readme, as my email client (Mozilla) complained that the certificate of the second protocol to be checked was
Carlos E. R. wrote: the same as another certificate and would not accept the "duplicate". I noted this is an option with the ssl in 9.3, it was however not an option with the ssl in 8.2. With the different serial number, there is no problem. -- Joe Morris New Tribes Mission Email Address: Joe_Morris@ntm.org Registered Linux user 231871
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Tuesday 2005-11-08 at 18:58 +0800, Joe Morris (NTM) wrote:
If you use both imaps AND pop3s, and you access the same server both ways with the same client (i.e. have a pop3 account set up AND an imap set up like I do, pop3 to get my system mail and imap to delete big messages from user accounts), I would suggest adding a " -set_serial <somenumber>" to the command in the readme, as my email client (Mozilla) complained that the certificate of the second protocol to be checked was the same as another certificate and would not accept the "duplicate". I noted this is an option with the ssl in 9.3, it was however not an option with the ssl in 8.2. With the different serial number, there is no problem.
I use 9.3, with the same certificate, and Mozilla doesn't complain. It is complaining that the certificate is old, as I haven't bothered to update yet. /etc/ssl/certs/ipop3d.pem -> imapd-nimrodel.valinor.pem I use the default "imap-2004c-3" (University of Washington IMAP toolkit). Hum! I might be mistaken, I don't really know what certificate it is using, I have: imapd-nimrodel.valinor.pem imapd.pem @ipop3d.pem --> imapd-nimrodel.valinor.pem I don't know which one is in use for imap. - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFDcfqbtTMYHG2NR9URAk4hAJ9uNih1kYp7/UujlLKyvu95S79sXQCeOE8n DA3rGPp5FiwIkTWbXa2H6JE= =8Mqn -----END PGP SIGNATURE-----
participants (6)
-
Carlos E. R.
-
Hans-Werner Hilse
-
Jim Flanagan
-
Joe Morris (NTM)
-
JUAN ERNESTO FLORES BELTRAN
-
Ken Schneider