Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Postfix creates emails without read permission....
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
EuroTPPK
n00b
n00b


Joined: 23 Oct 2009
Posts: 2

PostPosted: Fri Oct 23, 2009 8:51 am    Post subject: Postfix creates emails without read permission.... Reply with quote

Im having a problem with postfix creating non-readable emails for my webmail(roundcube).

New emails are created like this

Code:
-rw-------  1     200 nofiles 1802 Oct 23 10:17 1256285849.V802I4fef3M331433.NewROOT:2,


if i chmod +r email it is viewable in roundcube....

Code:

NewROOT cur # ls -la
total 12
drwxrwxrwx  2 postfix postfix  216 Oct 23 10:17 .
drwxrwxrwx 10 postfix postfix  328 Oct 23 10:17 ..
-rw-------  1 postfix postfix 1851 Oct 23 10:15 1256285709.V802I4fee3M636985.NewROOT:2,
-rw-------  1     200 nofiles 1849 Oct 23 10:17 1256285846.V802I4fef1M94391.NewROOT:2,
-rw-------  1     200 nofiles 1802 Oct 23 10:17 1256285849.V802I4fef3M331433.NewROOT:2,


Code:

NewROOT cur # postconf -n
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
default_privs = nobody
html_directory = /usr/share/doc/postfix-2.5.7/html
inet_interfaces = all
mail_owner = postfix
mailbox_transport = virtual
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost
myhostname = mail.europk.se
myorigin = $myhostname
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.5.7/readme
relayhost = [smtp.bredband.net]
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_helo_restrictions = reject_unknown_helo_hostname
smtpd_recipient_restrictions = reject_non_fqdn_recipient        reject_non_fqdn_sender        reject_unknown_recipient_domain        permit_mynetworks        permit_sasl_authenticated        check_policy_service inet:127.0.0.1:2501         reject_unauth_destination        permit
smtpd_sender_restrictions = reject_unknown_sender_domain
unknown_local_recipient_reject_code = 550
virtual_gid_maps = static:200
virtual_mailbox_base = /var/mail/vhosts
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailboxes.cf
virtual_minimum_uid = 100
virtual_transport = virtual
virtual_uid_maps = static:200



Thankful for any suggestions or ideas to why postfix are giving them this attributes.
Back to top
View user's profile Send private message
elgato319
Guru
Guru


Joined: 15 Sep 2005
Posts: 546

PostPosted: Fri Oct 23, 2009 9:41 am    Post subject: Reply with quote

i think the problem is not postfix, but the mailserver which is unable to access the emails.

Postfix is creating all emails with 200:200. So your mailserver needs to use 200:200 to access them.
Roundcube only accesses the mailserver and displays the results.

if you chmod the files "+r" the mailserver can access them because they are world readable.
Back to top
View user's profile Send private message
EuroTPPK
n00b
n00b


Joined: 23 Oct 2009
Posts: 2

PostPosted: Fri Oct 23, 2009 10:34 am    Post subject: Reply with quote

elgato319 wrote:
i think the problem is not postfix, but the mailserver which is unable to access the emails.

Postfix is creating all emails with 200:200. So your mailserver needs to use 200:200 to access them.
Roundcube only accesses the mailserver and displays the results.

if you chmod the files "+r" the mailserver can access them because they are world readable.


I thought postfix was the e-mail server?
I can see how many e-mails there are in the folder, but not the e-mails.

Any idea how to fix this?

i tried using a vmail user,
Code:
-rw------- 1 vmail vmail 1849 Oct 23 12:56 1256295406.V802I4fa56M18669.NewROOT:2,


no luck :(
Back to top
View user's profile Send private message
elgato319
Guru
Guru


Joined: 15 Sep 2005
Posts: 546

PostPosted: Mon Oct 26, 2009 8:50 am    Post subject: Reply with quote

Which mailserver do you have installed?

Postfix is the MTA (http://en.wikipedia.org/wiki/Mail_transfer_agent)

Dovecot? Cyrus?
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