View previous topic :: View next topic |
Author |
Message |
lpx Apprentice
Joined: 03 Mar 2005 Posts: 205 Location: Braga, Portugal
|
Posted: Wed Mar 16, 2005 9:24 pm Post subject: [SOLVED] Postfix+Courier+Squirrelmail. Squirrel says |
|
|
Hi,
I just installed postfix and courier imap and squirrel mail.
Everything appear to be ok. When i telnet to my locahost imap it responses ok
The configure check of squirrel says it's everything ok.
But when i try to login to an account, squirrel says Connection dropped by imap-server.
I just can't figure out why this is happening.
Can someone help me out?
I also need a tip for the postfix configuration.
I defined all the relevant variables about the internet domain but when i send a mail to someone outside my local network the address of the sender comes with my hostname and then with the domain of my ISP server.
How can i attach only my domain name, that i have registed to the senders address?
Cheers,
EDIT: Fixed stuck keyboard/CAPS lock problem in title. --pjp _________________ Imaginando o futuro
Imagining the future
Last edited by lpx on Sat Mar 19, 2005 4:36 pm; edited 1 time in total |
|
Back to top |
|
|
Prompty Apprentice
Joined: 08 Feb 2004 Posts: 292
|
Posted: Wed Mar 16, 2005 10:28 pm Post subject: |
|
|
take a look at this for clues on your squirrel problem http://www.onlamp.com/pub/a/onlamp/2002/10/24/squirrelmail.html
especially Quote: |
#
Set your imapd security to allow only connections from the localhost. This may be accomplished through tcpwrappers via /etc/hosts.allow, or by building a custom firewall rule. (Note: If you do not have imapd running, SquirrelMail will not function. Instead, you'll see PHP code in your browser.)
The appropriate entries in /etc/hosts.allow are:
# Imapd
imapd : 127.0.0.1 : allow
imapd : ALL : deny
|
also check your iptables for policies and loopback (lo) rules
as far as courier goes ... why don't you try something a little less complicated for starters ( maybe dovecot ? )
as far as postfix goes ... I have no idea I'm using good old fashioned sendmail thank you very much :] _________________ <input stupid message here> |
|
Back to top |
|
|
lpx Apprentice
Joined: 03 Mar 2005 Posts: 205 Location: Braga, Portugal
|
Posted: Thu Mar 17, 2005 12:13 am Post subject: |
|
|
thx man,
i was using sendmail before switch to gentoo and i have a nice configuration already for him but i tried to guide myself by that "virtual mail ... post fix...etc" from gentoo guides.
after installing postfix i installed sendmail and it was working so i don't if they we in confilict or something like that
i have only 2 weeks of gentoo
i'll try this _________________ Imaginando o futuro
Imagining the future |
|
Back to top |
|
|
lpx Apprentice
Joined: 03 Mar 2005 Posts: 205 Location: Braga, Portugal
|
Posted: Thu Mar 17, 2005 9:38 am Post subject: |
|
|
Hi againm
i'm trying to put back on the sendmail. but something weird happens.
I merge it without any problems and i unmerge postfix. i copy my old config file to /etc/mail and start sendmail
he starts ok but when i try to send a message with mutt, per instance, he blocks with the message "sending message"
did you had to do something particular to make it work?
cheers _________________ Imaginando o futuro
Imagining the future |
|
Back to top |
|
|
Prompty Apprentice
Joined: 08 Feb 2004 Posts: 292
|
Posted: Thu Mar 17, 2005 10:57 am Post subject: |
|
|
use mail ...it's better
mail -s test email_adress@domain.ext <enter>
.
"." means EOT ;]
and watch what is going on in your /var/log/mail ( or maillog )
maybe it's a mutt thingy :]
going back to squirrel ... are you blocking lo ( or not allowing it at all ? ) _________________ <input stupid message here> |
|
Back to top |
|
|
lpx Apprentice
Joined: 03 Mar 2005 Posts: 205 Location: Braga, Portugal
|
Posted: Thu Mar 17, 2005 11:34 am Post subject: |
|
|
i dont have mail installed.
which package i have to emerge in order to have it?
i tried to look at that file you told me and it doesnt exist.
i created it but the same thing happened. now i'm trying dovecot.
i didnt had time to look at the link you gave yet.
cheers, _________________ Imaginando o futuro
Imagining the future |
|
Back to top |
|
|
Prompty Apprentice
Joined: 08 Feb 2004 Posts: 292
|
Posted: Thu Mar 17, 2005 11:56 am Post subject: |
|
|
ok sorry ... in gentoo you're suppooused to use
Code: |
tail -f /var/log/mail/current
|
as for mail ... i have no idea where it is _________________ <input stupid message here> |
|
Back to top |
|
|
lpx Apprentice
Joined: 03 Mar 2005 Posts: 205 Location: Braga, Portugal
|
Posted: Thu Mar 17, 2005 12:46 pm Post subject: |
|
|
fuck man!
dovecot is cool!!
i have just installed it and started it and squirrel its already working!!
but, yeah, this was the easy way.
if i want to have a secure system i have to know what is going on, isn't it right?
i have already installed postfix and sendmail and there was no /var/log/mail for both
i don't understand...
now i just have to put sendmail running.
i'm having a problem with it. it seems that the emerge of postfix made it standard
when i start sendmail it says me that he's already using postifx.
but i did emerge -C postfix and he continues to tell me that.
do you have any clue of what's going on?
cheers, _________________ Imaginando o futuro
Imagining the future |
|
Back to top |
|
|
Prompty Apprentice
Joined: 08 Feb 2004 Posts: 292
|
Posted: Thu Mar 17, 2005 12:58 pm Post subject: |
|
|
no ... does it stop sendmail from running ? do etc-update and env-update :] _________________ <input stupid message here> |
|
Back to top |
|
|
lpx Apprentice
Joined: 03 Mar 2005 Posts: 205 Location: Braga, Portugal
|
Posted: Thu Mar 17, 2005 1:32 pm Post subject: |
|
|
i'm starting and stoping sendmail and it appear to be working normally. no errors now.
the thing is that i cant know what's happening because i don't know where the logfile is
there is no /var/log/mail*
which are the basic steps to put sendmail running?
i did:
emerge sendmail
and then copied to /etc/mail/ all my old config files.
i've checked this ones already to have sure that all was in the right path
PS: i've found the mail...it's in the mailutils package ... compiling _________________ Imaginando o futuro
Imagining the future |
|
Back to top |
|
|
Prompty Apprentice
Joined: 08 Feb 2004 Posts: 292
|
Posted: Thu Mar 17, 2005 2:01 pm Post subject: |
|
|
you have system logger poorly configured ... I'can help you with that ...metalog and syslog-ng worked fine for me .
first backup your sendmail files :]
remebere to make every file with extension db
Code: |
make mailertable.db
make virtusertable.db
...
|
and so on
and
optionally
Code: |
cd /etc/mail
m4 sendmail.mc >sendmail.cf
|
then restart sendmail ... and everything should be ok ... _________________ <input stupid message here> |
|
Back to top |
|
|
lpx Apprentice
Joined: 03 Mar 2005 Posts: 205 Location: Braga, Portugal
|
Posted: Thu Mar 17, 2005 6:20 pm Post subject: |
|
|
When i do the mail -s testing joe@example.com
i get this:
central mail # mail -s test joe@example.com
Cc:
gregregre
.
sh: sendmail:/usr/sbin/sendmail: No such file or directory
sendmail exists in /usr/sbin _________________ Imaginando o futuro
Imagining the future |
|
Back to top |
|
|
Prompty Apprentice
Joined: 08 Feb 2004 Posts: 292
|
Posted: Thu Mar 17, 2005 8:46 pm Post subject: |
|
|
have you done etc-update and env-update ?
and sendmail should be running _________________ <input stupid message here> |
|
Back to top |
|
|
lpx Apprentice
Joined: 03 Mar 2005 Posts: 205 Location: Braga, Portugal
|
Posted: Thu Mar 17, 2005 8:59 pm Post subject: |
|
|
yeah...doesnt work...
postfix works perfectly. the only thing that happens is that when i send a email to an outside address it doesnt stay with my registered domain.... it attaches my isp domain name to my hostname
you know....when i unmerge something, the system tells me the following:
* Caching service dependencies ...
* Service 'syslog-ng' already provided by 'logger'!;
* Not adding service 'metalog'...
* Service 'postfix' already provided by 'mta'!;
* Not adding service 'sendmail'... [ ok ]
* GNU info directory index is up-to-date.
->> service postfix already provided by mta
->> not adding service sendmail
i think this was because i merged sendmail after postfix.
and now its happening for metalog too because a few moments ago i tried to emerge it
but it is already unmerged and this message continues to appear.
how do i get this off? _________________ Imaginando o futuro
Imagining the future |
|
Back to top |
|
|
lpx Apprentice
Joined: 03 Mar 2005 Posts: 205 Location: Braga, Portugal
|
Posted: Thu Mar 17, 2005 9:14 pm Post subject: |
|
|
i must be already tired of seeing my posts
but now it's working with postfix
the domain name that i want comes attached to the emails!!
happy and not :S _________________ Imaginando o futuro
Imagining the future |
|
Back to top |
|
|
Prompty Apprentice
Joined: 08 Feb 2004 Posts: 292
|
Posted: Thu Mar 17, 2005 9:31 pm Post subject: |
|
|
lpx wrote: |
* Caching service dependencies ...
* Service 'syslog-ng' already provided by 'logger'!;
* Not adding service 'metalog'...
* Service 'postfix' already provided by 'mta'!;
* Not adding service 'sendmail'... [ ok ]
* GNU info directory index is up-to-date.
->> service postfix already provided by mta
->> not adding service sendmail
|
<edited>
remove sendmail and matelog (move them somewhere safe for now)
ummm ok remove anyting you don't use from your /etc/init.d and run env-update
and run
to see what services are run _________________ <input stupid message here> |
|
Back to top |
|
|
lpx Apprentice
Joined: 03 Mar 2005 Posts: 205 Location: Braga, Portugal
|
Posted: Fri Mar 18, 2005 8:56 pm Post subject: |
|
|
it's okay now!
thx _________________ Imaginando o futuro
Imagining the future |
|
Back to top |
|
|
|