View previous topic :: View next topic |
Author |
Message |
Rooney Apprentice
Joined: 07 Aug 2003 Posts: 193 Location: Sheffield, UK
|
|
Back to top |
|
|
Soynuts n00b
Joined: 22 Jun 2006 Posts: 40
|
Posted: Fri Dec 01, 2006 1:51 pm Post subject: |
|
|
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 |
|
|
Rooney Apprentice
Joined: 07 Aug 2003 Posts: 193 Location: Sheffield, UK
|
Posted: Fri Dec 01, 2006 2:23 pm Post subject: |
|
|
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 hadnt realised the rule in the main.cf file "permit_mynetworks" will actually identify my /29 subnet as local network and thats 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 doesnt seem to automatically create the maildirs I have to create these manually and change the permissions manually. |
|
Back to top |
|
|
Soynuts n00b
Joined: 22 Jun 2006 Posts: 40
|
Posted: Fri Dec 01, 2006 2:54 pm Post subject: |
|
|
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 |
|
|
Rooney Apprentice
Joined: 07 Aug 2003 Posts: 193 Location: Sheffield, UK
|
Posted: Fri Dec 01, 2006 3:07 pm Post subject: |
|
|
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
Thanks again |
|
Back to top |
|
|
|