Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

Postfix creates emails without read permission....

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
EuroTPPK
n00b
n00b
Posts: 2
Joined: Fri Oct 23, 2009 7:46 am

Postfix creates emails without read permission....

  • Quote

Post by EuroTPPK » Fri Oct 23, 2009 8:51 am

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

New emails are created like this

Code: Select all

-rw-------  1     200 nofiles 1802 Oct 23 10:17 1256285849.V802I4fef3M331433.NewROOT:2,
if i chmod +r email it is viewable in roundcube....

Code: Select all

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: Select all

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.
Top
elgato319
Guru
Guru
Posts: 546
Joined: Thu Sep 15, 2005 9:45 am

  • Quote

Post by elgato319 » Fri Oct 23, 2009 9:41 am

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.
Top
EuroTPPK
n00b
n00b
Posts: 2
Joined: Fri Oct 23, 2009 7:46 am

  • Quote

Post by EuroTPPK » Fri Oct 23, 2009 10:34 am

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: Select all

-rw------- 1 vmail vmail 1849 Oct 23 12:56 1256295406.V802I4fa56M18669.NewROOT:2,
no luck :(
Top
elgato319
Guru
Guru
Posts: 546
Joined: Thu Sep 15, 2005 9:45 am

  • Quote

Post by elgato319 » Mon Oct 26, 2009 8:50 am

Which mailserver do you have installed?

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

Dovecot? Cyrus?
Top
Post Reply

4 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic