nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

Minisendmail chroot

This is a discussion on Minisendmail chroot within the Web servers forums, part of the Mastering Servers category; Hi i cant send an email with minisendmail, i always get this error: Code: /usr/sbin/sendmail: unexpected response 550 to MAIL ...


Go Back   nixCraft Linux Forum > Mastering Servers > Web servers

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 01-17-2008, 04:01 PM
Junior Member
User
 
Join Date: Jan 2008
My distro: Ubuntu
Posts: 2
Rep Power: 0
get.the.MaX is on a distinguished road
Default Minisendmail chroot

Hi

i cant send an email with minisendmail, i always get this error:

Code:
/usr/sbin/sendmail: unexpected response 550 to MAIL FROM command
Qmail reports:

Code:
@40000000478f3b2a0a1886ac CHKUSER rejected sender: from <root@gutsy32::> remote <gutsy32:unknown:127.0.0.1> rcpt <> : invalid sender MX domain
System is ubuntu 7.10 lighttpd 1.4.18 with chroot setup. Sendmail path in my php.ini

Code:
sendmail_path = /usr/sbin/sendmail -t -i
I tried
Code:
mail.force_extra_parameters = "-r tld.de"
Anyone an idea?

*** Edit

From console this works
Code:
echo 'Subject: test' | /home/webroot/sbin/sendmail -ftld.de -smail.tld.de -v tld.de
When i add this to my php.ini i got the same error in qmail

Code:
sendmail_path = /usr/sbin/sendmail -t -i -ftld.de -smail.tld.de

Last edited by get.the.MaX; 01-17-2008 at 06:44 PM.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 01-17-2008, 09:39 PM
raj raj is offline
Contributors
User
 
Join Date: Jun 2005
Location: Hyderabad
Posts: 148
Rep Power: 4
raj is on a distinguished road
Default

Try calling mini_sendmail as /usr/sbin/sendmail -t
Can you trace call using strace in jail? It will provide you more info.
__________________
Raj
Linux rulz.
I have never turned back in my life ; I shall not do so today.. haha
Reply With Quote
  #3 (permalink)  
Old 01-17-2008, 11:58 PM
Junior Member
User
 
Join Date: Jan 2008
My distro: Ubuntu
Posts: 2
Rep Power: 0
get.the.MaX is on a distinguished road
Default

Code:
echo 'Subject: test' | /home/webroot/usr/sbin/mini_sendmail -t -i -fadmin@tld.de -v technik@tld.de
<<<< 220 mail.tld.de ESMTP
>>>> HELO gutsy32
<<<< 250 mail.tld.de
>>>> MAIL FROM:<admin@tld.de>
<<<< 250 ok
>>>> RCPT TO:<technik@tld.de>
<<<< 250 ok
>>>> DATA
<<<< 354 go ahead
<<<< 250 ok 1200597509 qp 23144
>>>> QUIT
<<<< 221 mail.tld.de
From the console there is no problem, but when i try to send a mail with php the -f options seems to be ignored.

Here is the php testscript

Code:
<?php 
mail("admin@tld.de", "PHP Test mail", "Hope this works!" , "technik@tld.de"); ?>
Here you can see what happen.

Code:
echo 'Subject: test' | /home/webroot/usr/sbin/mini_sendmail -t -i -v technik@tld.de
<<<< 220 mail.tld.de ESMTP
>>>> HELO gutsy32
<<<< 250 mail.tld.de
>>>> MAIL FROM:<root@gutsy32>
<<<< 550 5.1.8 sorry, can't find a valid MX for sender domain (chkuser)
/home/webroot/usr/sbin/mini_sendmail: unexpected response 550 to MAIL FROM command
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
lighty: mysql issue when chroot enabled TECK Web servers 11 11-24-2007 11:06 AM
How t o configure vsftpd to chroot virtual users rockdalinux Getting started tutorials 0 06-19-2007 05:47 PM


All times are GMT +5.5. The time now is 06:39 PM.


Powered by vBulletin® Version 3.7.3 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36