LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 06-14-2005, 08:30 PM   #1
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Rep: Reputation: 51
replace exim with postfix on sarge ?


hi

howto replace exim4 with postfix on sarge ?

I have removed exim4:
# apt-get remove exim4

installed postfix:
# apt-get install postfix postfix-tls postfix-doc

but I'dont have any main.cf in /etc/postfix
# cd /etc/postfix
# ls -la
insgesamt 76
drwxr-xr-x 3 root root 4096 2005-06-15 02:02 .
drwxr-xr-x 99 root root 4096 2005-06-15 02:08 ..
-rw-r--r-- 1 root root 385 2005-06-15 01:14 dynamicmaps.cf
-rw-r--r-- 1 root root 6604 2006-03-16 23:10 master.cf
-rw-r--r-- 1 root root 16114 2005-03-01 02:05 postfix-files
-rwxr-xr-x 1 root root 5800 2005-03-01 02:05 postfix-script
-rwxr-xr-x 1 root root 21207 2005-03-01 02:05 post-install
drwxr-xr-x 2 root root 4096 2005-03-01 02:05 sasl

OK I've created main.cf
# /etc/init.d/postfix restart
Stopping mail transport agent: Postfix.
Starting mail transport agent: Postfix.

but is not listening on 25 port:

# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.

knows someone, what's wrong ?
 
Old 06-15-2005, 09:51 AM   #2
Andronik
Member
 
Registered: Sep 2003
Location: Estonia Tartu
Distribution: Debian, edition depends on what i run it, wheezy on main box.
Posts: 91

Rep: Reputation: 15
first postfix on debian runs chrooted by default. unless you installed it from source.

you can check it main.cf values by issuing "postconf -d" command

now it depends what way you like to configure postfix main fails > main and master conf.
for example you can do its conf by webmin or by hand.
i suggest to start from www.postfix.org reading documentation and links.
MAN postfix helps too.

if you want quick hint why it doesn't work or listen > tail -f /var/log/mail.log
postfix complains there.
don't be afraid, it is easier than you think.


wait:
i reread your post.
you said:

"Connected to localhost.localdomain.
Escape character is '^]'."

so you get answer, but what did you expect?
if your main.conf doesn't tell smtpd to say exactly something more about himself, it just said what you see.
now you must proceed to smtp conversation with introducing yourself with helo or ehlo command.

i thought you did "netsat -la" command and there wasn't smtp or 25 port listed.
mis-configured smtpd deamon will hang quickly after smtp session starts and you can see reason in mail.log.

Last edited by Andronik; 06-15-2005 at 10:06 AM.
 
Old 06-15-2005, 02:08 PM   #3
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Original Poster
Rep: Reputation: 51
telnet localhost 25
doesn't get any answer and console is hanging.

I expect the following answer:

# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
220 localhost.localdomain ESMTP Postfix (Debian/GNU)
 
Old 06-15-2005, 02:14 PM   #4
Andronik
Member
 
Registered: Sep 2003
Location: Estonia Tartu
Distribution: Debian, edition depends on what i run it, wheezy on main box.
Posts: 91

Rep: Reputation: 15
Quote:
Originally posted by cccc
telnet localhost 25
doesn't get any answer and console is hanging.

I expect the following answer:

# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
220 localhost.localdomain ESMTP Postfix (Debian/GNU)
then check first half of my 1 post.
 
Old 06-15-2005, 02:23 PM   #5
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Original Poster
Rep: Reputation: 51
thanks,

I solved this problem !

I have removed postfix.

# base-config
-> install packets -> install mail server

I've installed postfix again

removed following links:

update-rc.d -f exim remove

and configured:

# dpkg-reconfigure --priority=low postfix


p.s.
Code:
# tail -f /var/log/mail.log
helps a lot

greetings
cccc

Last edited by cccc; 06-25-2005 at 11:24 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Exim or Postfix utku Debian 3 06-05-2005 01:36 PM
exim is failed !!! error:package exim is not installed apache Linux - Software 0 06-24-2004 06:55 AM
mail program (exim) (or should i use postfix) davegermiquet Linux - Software 0 05-26-2004 05:32 PM
Exim seems to freak out when it sees Quit from Postfix ruski Linux - Software 0 03-15-2004 03:20 PM
problem in perl replace command with slash (/) in search/replace string ramesh_ps1 Red Hat 4 09-10-2003 02:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 08:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration