Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Postfix Courier Postfixadmin MySQL (OPENRELAY)
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
Rooney
Apprentice
Apprentice


Joined: 07 Aug 2003
Posts: 193
Location: Sheffield, UK

PostPosted: Fri Dec 01, 2006 1:24 pm    Post subject: Postfix Courier Postfixadmin MySQL (OPENRELAY) Reply with quote

Hi All,

I have followed this guide to the letter and it seems to work perfect other than one major factor it leaves the system as an open relay, does any one know the best way to secure this.

the guide mentioned above

http://gentoo-wiki.com/HOWTO_Setup_a_Virtual_Postfix/Courier_Mail_System_with_PostfixAdmin
Back to top
View user's profile Send private message
Soynuts
n00b
n00b


Joined: 22 Jun 2006
Posts: 40

PostPosted: Fri Dec 01, 2006 1:51 pm    Post subject: Reply with quote

What does your /etc/postfix/main.cf file look like? You can do grep -v "#" /etc/postfix/main.cf to spit it out without the comments.
Back to top
View user's profile Send private message
Rooney
Apprentice
Apprentice


Joined: 07 Aug 2003
Posts: 193
Location: Sheffield, UK

PostPosted: Fri Dec 01, 2006 2:23 pm    Post subject: Reply with quote

I got my self confused it does actually work fine and is not an open relay, i have a block of 8 ip address so i was connecting to the mail server from one of those to emulate an external connection but i hadn’t realised the rule in the main.cf file "permit_mynetworks" will actually identify my /29 subnet as local network and that’s why i though i was open, but i have now remoted to a true external box and tried to relay mail from the server and it is locked down.

The only other problems I have now is mail isent coming in and postfixadmin doesn’t seem to automatically create the maildir’s I have to create these manually and change the permissions manually.
Back to top
View user's profile Send private message
Soynuts
n00b
n00b


Joined: 22 Jun 2006
Posts: 40

PostPosted: Fri Dec 01, 2006 2:54 pm    Post subject: Reply with quote

I used to have that problem. It ended up me not having the right uid/gids pointing to my postfix user in main.cf that owns my /var/vmail directory where I store all my virtual domain mail (if you have a different user that owns your vmail dir, then make sure you have the uid and gid variables pointing to him and his group). Are you able to su to your postfix/vmail user and do maildirmake user? If you are, then that means you have a uid or gid incorrect in one of your configuration files.
Back to top
View user's profile Send private message
Rooney
Apprentice
Apprentice


Joined: 07 Aug 2003
Posts: 193
Location: Sheffield, UK

PostPosted: Fri Dec 01, 2006 3:07 pm    Post subject: Reply with quote

Soynuts wrote:
I used to have that problem. It ended up me not having the right uid/gids pointing to my postfix user in main.cf that owns my /var/vmail directory where I store all my virtual domain mail (if you have a different user that owns your vmail dir, then make sure you have the uid and gid variables pointing to him and his group). Are you able to su to your postfix/vmail user and do maildirmake user? If you are, then that means you have a uid or gid incorrect in one of your configuration files.


Thanks for that i changed the uid and gid to the one of the root user "only to test" and that solved the problem so im now fiddling around with the ownership of the folder and uid's,gid's in the config files :D

Thanks again
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