allowing open relay on postfix

Red Squirrel

No Lifer
May 24, 2003
70,418
13,721
126
www.anyf.ca
Postfix disables open relay by default, is there a way to enable it? This is on a LAN so no use getting complicated with authentication and stuff, I just want normal open relay. Thanks in advance.
 

Red Squirrel

No Lifer
May 24, 2003
70,418
13,721
126
www.anyf.ca
But open relay is much more simple to setup, and it's a LAN, not like spammers can get to it. I'm sure it's just a single flag I set like relay=true or something. Just need to know what it is.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: RedSquirrel
But open relay is much more simple to setup, and it's a LAN, not like spammers can get to it. I'm sure it's just a single flag I set like relay=true or something. Just need to know what it is.

Read the docs. Read the link I posted, it might solve the problem without setting up an open relay. Setting up an open relay is bad form, whether spammers can get to it or not. Don't practice like you're practicing, practice like you're playing.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Read the docs, it's not difficult.

Just set mynetworks equal to your local subnet.
 

Red Squirrel

No Lifer
May 24, 2003
70,418
13,721
126
www.anyf.ca
I think I got it working now. I just edited a file in /etc/ and it let me send the email. I'll only know if it got sent once I setup the rest though (fetchmail and stuff). But I ran into another problem with Maildir that I'm trying to fix. It creates some weird folders when I log in, and everything is just screwedup. I might switch back to Mbox, not sure yet.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
"edited some file"? You already don't remember what you did?

Without knowing what those folders are it's impossible to tell if they're important or not, but if it's creating them automatically I would guess that they are. Going back to mbox would be stupid, it's a much worse solution all around.
 

Red Squirrel

No Lifer
May 24, 2003
70,418
13,721
126
www.anyf.ca
Just checked and the file is /etc/mailname. I had to put all the domains that mail is expected to come from. But on an online server this would not really be good as spammers can just spoof the domain (like they always do anyway) but for lan it's good enough.

My maildir is totaly messed, I just started a new thread on it since it's a complete different issue.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
/etc/mailname is supposed to only contain 1 line describing the fully qualified domain name that mail programs should use when sending mail.