LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 02-09-2012, 03:22 PM   #1
methodtwo
Member
 
Registered: May 2007
Posts: 146

Rep: Reputation: 18
postfix not responding from freebsd jail


Hi
I'm using FreeBSD-8.2-RELEASE-p6.I created a jail on this host for my mail daemons(postfix+dovecot) to live in.I followed the jail(8) man page and i also installed postfix and dovecot from the ports tree(via mount_nullfs /usr/ports $D/usr/ports). I can do:
Code:
$openssl s_client -quiet -connect myhost.mydomain.com:993
and get a response from dovecot(although when connecting from mutt on my client the jailed mailbox is always empty, due to the fact that not even the bsd mail command, when run on this freeBSD jailed system, results in mail appearing in /var/mail/user in the jail).
Also when i try to connect to the jailed postfix by doing:
Code:
$telnet myhost.mydomain 25
on the client box i get no response from postfix.I have the i.p address of the ifconfig alias as the address to listen on in postfix's main.cf. Also both the /etc/hosts(client and server) files list the I.P and hostname of the jailed virtual system and the client's hostname, as well as the loopback interface. Can anyone make any suggestions of what might be wrong?. Postfix starts without any error in this jail. Also i would rather do it without ezjail if at all possible.
thank you very much for any replies
 
Old 02-09-2012, 04:59 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
From inside the jail, run:
Code:
# sockstat -4l
Do you see Postfix listening? If so, from the host system, run:
Code:
# tcpdump -i int_here host IP_here and port 25
... where "int_here" is the correct interface (that the jail alias is on), and "IP_here" is the IP address of the jail.

Now run your test again. See any activity from tcpdump(1)?
 
Old 02-10-2012, 10:36 AM   #3
methodtwo
Member
 
Registered: May 2007
Posts: 146

Original Poster
Rep: Reputation: 18
The 3-way-handshake is completed, from the client to the postfix MTA in the jail, but no data is sent or received(to or from postfix). Postfix is also listed in the output of sockstat.
 
Old 02-10-2012, 01:34 PM   #4
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
So you're saying the telnet(1) test completes a TCP handshake, but you don't see any welcome chatter from Postfix. Hmm.

Any clues in the Postfix logs? And, out of curiosity, what does your /dev contain (within the jail)?
 
Old 04-19-2012, 03:47 AM   #5
matiasp
LQ Newbie
 
Registered: Apr 2012
Distribution: FreeBSD 7, 8 and 9 + PCBSD 9.0 desktop
Posts: 1

Rep: Reputation: Disabled
I have recently set-up a dovecot + postfix + maia + roundcube server in a jail which is working very nicely. Let me know here what is the status of your deployment and I will probably be able to help if you are still stuck somewhere.

I know this is not the main point of your post, but, to send mail from your host you can do the following:

Running make in /etc/mail creates a bunch of .cf and .mc files with your hostname as basename
Code:
cd /etc/mail;
make
In your_hostname.submit.mc, change 127.0.0.1 to your jail's ip
Code:
FEATURE(`msp', `[127.0.0.1]')dnl
becomes
Code:
FEATURE(`msp', `[your_jail_ip]')dnl
run make again and replace submit.cf with the resulting your_hostname.submit.cf
Code:
make
mv /etc/mail/submit.cf /etc/mail/submit.cf.orig
mv your_hostname.submit.cf submit.cf
You should now be able to send mail via postfix, using mail at the host's command line (or from any other jail where you have done the above).

Code:
mail -v someone@somewhere.net

Last edited by matiasp; 04-19-2012 at 03:50 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
centOS 5 - postfix setup, connecting with telnet not responding Cendent Linux - Newbie 17 07-27-2010 09:31 PM
How to reinforce chroot jail on postfix+dovecot with mysql? cviniciusm Linux - Server 0 02-16-2009 01:08 PM
LXer: How To: FreeBSD Jail Upgrade LXer Syndicated Linux News 0 11-18-2008 08:00 PM
Postfix running but not responding CoolCow Linux - Server 5 05-30-2008 09:01 AM
run postfix in a chroot jail in rhel 5 the_gripmaster Linux - Server 2 06-28-2007 01:16 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 03:48 PM.

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