Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Postfix+Courier+Squirrelmail. Squirrel says
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
lpx
Apprentice
Apprentice


Joined: 03 Mar 2005
Posts: 205
Location: Braga, Portugal

PostPosted: Wed Mar 16, 2005 9:24 pm    Post subject: [SOLVED] Postfix+Courier+Squirrelmail. Squirrel says Reply with quote

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
View user's profile Send private message
Prompty
Apprentice
Apprentice


Joined: 08 Feb 2004
Posts: 292

PostPosted: Wed Mar 16, 2005 10:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
lpx
Apprentice
Apprentice


Joined: 03 Mar 2005
Posts: 205
Location: Braga, Portugal

PostPosted: Thu Mar 17, 2005 12:13 am    Post subject: Reply with quote

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 :wink:
_________________
Imaginando o futuro
Imagining the future
Back to top
View user's profile Send private message
lpx
Apprentice
Apprentice


Joined: 03 Mar 2005
Posts: 205
Location: Braga, Portugal

PostPosted: Thu Mar 17, 2005 9:38 am    Post subject: Reply with quote

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
View user's profile Send private message
Prompty
Apprentice
Apprentice


Joined: 08 Feb 2004
Posts: 292

PostPosted: Thu Mar 17, 2005 10:57 am    Post subject: Reply with quote

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
View user's profile Send private message
lpx
Apprentice
Apprentice


Joined: 03 Mar 2005
Posts: 205
Location: Braga, Portugal

PostPosted: Thu Mar 17, 2005 11:34 am    Post subject: Reply with quote

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
View user's profile Send private message
Prompty
Apprentice
Apprentice


Joined: 08 Feb 2004
Posts: 292

PostPosted: Thu Mar 17, 2005 11:56 am    Post subject: Reply with quote

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
View user's profile Send private message
lpx
Apprentice
Apprentice


Joined: 03 Mar 2005
Posts: 205
Location: Braga, Portugal

PostPosted: Thu Mar 17, 2005 12:46 pm    Post subject: Reply with quote

fuck man!

dovecot is cool!! :D

i have just installed it and started it and squirrel its already working!! :D

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
View user's profile Send private message
Prompty
Apprentice
Apprentice


Joined: 08 Feb 2004
Posts: 292

PostPosted: Thu Mar 17, 2005 12:58 pm    Post subject: Reply with quote

no ... does it stop sendmail from running ? do etc-update and env-update :]
_________________
<input stupid message here>
Back to top
View user's profile Send private message
lpx
Apprentice
Apprentice


Joined: 03 Mar 2005
Posts: 205
Location: Braga, Portugal

PostPosted: Thu Mar 17, 2005 1:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
Prompty
Apprentice
Apprentice


Joined: 08 Feb 2004
Posts: 292

PostPosted: Thu Mar 17, 2005 2:01 pm    Post subject: Reply with quote

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
Code:

newaliases


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
View user's profile Send private message
lpx
Apprentice
Apprentice


Joined: 03 Mar 2005
Posts: 205
Location: Braga, Portugal

PostPosted: Thu Mar 17, 2005 6:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
Prompty
Apprentice
Apprentice


Joined: 08 Feb 2004
Posts: 292

PostPosted: Thu Mar 17, 2005 8:46 pm    Post subject: Reply with quote

have you done etc-update and env-update ?

and sendmail should be running
_________________
<input stupid message here>
Back to top
View user's profile Send private message
lpx
Apprentice
Apprentice


Joined: 03 Mar 2005
Posts: 205
Location: Braga, Portugal

PostPosted: Thu Mar 17, 2005 8:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
lpx
Apprentice
Apprentice


Joined: 03 Mar 2005
Posts: 205
Location: Braga, Portugal

PostPosted: Thu Mar 17, 2005 9:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
Prompty
Apprentice
Apprentice


Joined: 08 Feb 2004
Posts: 292

PostPosted: Thu Mar 17, 2005 9:31 pm    Post subject: Reply with quote

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
Code:
rc-update show

to see what services are run
_________________
<input stupid message here>
Back to top
View user's profile Send private message
lpx
Apprentice
Apprentice


Joined: 03 Mar 2005
Posts: 205
Location: Braga, Portugal

PostPosted: Fri Mar 18, 2005 8:56 pm    Post subject: Reply with quote

it's okay now!

thx :wink:
_________________
Imaginando o futuro
Imagining the future
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum