Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Postfix error
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
lghman
Guru
Guru


Joined: 29 Nov 2002
Posts: 548
Location: Florida

PostPosted: Sat Jan 25, 2003 3:17 am    Post subject: Postfix error Reply with quote

Ok, here we go! I am trying to set up a mail server for my domain (mydomain.net). I installed postfix and it works to Send mail to a local user but wont send to a remote address (you@gentoo.org). But it will recieve mail from a remote address. I tried reading the postfix documentation but I am lost. I also searched the forums, but couldnt find anything. When I try to use my ISP as a relay to send mail I get:
Code:

<sonikntails@myisp.net>: host mail.myisp.net[207.*.*.*] said: 550
    rejected: syntax error in 'From' header when scanning for sender: domain
    missing or malformed in "sonik@" (envelope sender is
    <sonik@mydomain.net>) (in reply to end of DATA command)

Now I am not hellbent on using my ISP as a relay, just thought that
it would be easier. (Maybe I was wrong) lol. Do I need to install another MTA to send the mail?

My second question involves setting up Squirellmail. All i want to know is what IMAP I should use? Does one have any real advantages over another? Or is one easier to set up that others?
Thanks

--sonik

p.s. Just in case someone asks for it:
Code:
 $postconf -n
alias_database = hash:/etc/mail/aliases
alias_maps = hash:/etc/mail/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
default_destination_concurrency_limit = 10
home_mailbox = .maildir/
inet_interfaces = all
local_destination_concurrency_limit = 2
mail_owner = postfix
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain $mydomain
mydomain = mydomain.net
myhostname = myhost.mydomain.net
mynetworks_style = subnet
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.0.2-r1
relayhost = [mail.myisp.net]:25
sample_directory = /etc/postfix/sample
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
unknown_local_recipient_reject_code = 450
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Sat Jan 25, 2003 3:36 am    Post subject: missing a line in your main.cf Reply with quote

from my Postfix installation:

Code:

mynetworks = 10.10.1.0/24,  127.0.0.0/8
mynetworks_style = subnet
myorigin = $myhostname
newaliases_path = /usr/bin/newaliases


I don't see the first line above anywhere in yours. You'll need to uncomment the line with 127.0.0.0/8 in it and change the other IP's to your local network or any IP range you'd like to relay from.

kashani
_________________
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Back to top
View user's profile Send private message
lghman
Guru
Guru


Joined: 29 Nov 2002
Posts: 548
Location: Florida

PostPosted: Sat Jan 25, 2003 3:44 am    Post subject: Reply with quote

I put that in, but it didnt fix the problem. I am still getting :
Code:
<sonikntails@myisp.net>: host mail.myisp.net[207.*.*.*] said: 550
    rejected: syntax error in 'From' header when scanning for sender: domain
    missing or malformed in "sonik@" (envelope sender is
    <sonik@mydomain.net>) (in reply to end of DATA command)
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Sat Jan 25, 2003 4:20 am    Post subject: sorry about that... Reply with quote

Sorry about that, I didn't really look at the error that hard. Your problem line looks like

Code:

relayhost = [mail.myisp.net]:25


I tested it briefly on my setup and by adding a relay host. I believe your syntax is off. You only need to put it in brackets if it's an IP address judging from the config file. So change the above line in your main.cf to:

relayhost = mail.myisp.net

and that should fix it.

kashani
_________________
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Back to top
View user's profile Send private message
lghman
Guru
Guru


Joined: 29 Nov 2002
Posts: 548
Location: Florida

PostPosted: Sat Jan 25, 2003 4:33 am    Post subject: Reply with quote

changed the file just like you said :
Code:

<sonikntails@earthlink.net>: host mail.earthlink.net[207.217.121.216] said: 550
    rejected: syntax error in 'From' header when scanning for sender: domain
    missing or malformed in "sonik@" (envelope sender is
    <sonik@lifeafter2am.net>) (in reply to end of DATA command)



seems to me that the error has to do with this line:
Code:
 rejected: syntax error in 'From' header when scanning for sender: domain
    missing or malformed in "sonik@" (envelope sender is
    <sonik@lifeafter2am.net>)

I know thats it, but I dont know how to fix it? lol

thanks

--sonik
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Sat Jan 25, 2003 4:50 am    Post subject: really really odd Reply with quote

Well I've got a bit of time to kill before heading out to the Clown Room...

How are you sending your test messages? I'm wondering if it's more of clinet problem then a server issue. TO breaking it down to it's simplests form I'd try:

echo "Subject: Testing #214" | /usr/sbin/sendmail -F sonik -f sonik sonikntails@earthlink.net

Go ahead and test without a relay host if you can... or does your provider do interesting port 25 filters?

kashani
_________________
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Back to top
View user's profile Send private message
lghman
Guru
Guru


Joined: 29 Nov 2002
Posts: 548
Location: Florida

PostPosted: Sat Jan 25, 2003 5:03 am    Post subject: Reply with quote

I cant try that because I dont have sendmail installed. I thought that I didnt have to if I was using postfix. I am just using mutt in the standerd .maildir format.
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Sat Jan 25, 2003 6:46 am    Post subject: more postfix Reply with quote

<kashani shakes his head at today's youth>

All MTA's for *nix systems install a binary named sendmail which is a wrapper for whichever MTA you are using that maintains some sort of compatibility with Sendmail. So, yes, you do have /usr/sbin/sendmail.

Judging from the error, a few googles, and that you're using Mutt, I suspect that Postfix is file and that Mutt may be the problem. If the sendmail test works start checking your mutt config.

kashani
_________________
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Back to top
View user's profile Send private message
lghman
Guru
Guru


Joined: 29 Nov 2002
Posts: 548
Location: Florida

PostPosted: Sat Jan 25, 2003 10:29 pm    Post subject: Reply with quote

yea your right, its working fine, I dont really care about mutt anyway, just using it to test the config. Thanks for your help

--sonik
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