HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   Bizare postfix problems with file ownership (http://www.howtoforge.com/forums/showthread.php?t=58481)

lazacom 3rd September 2012 13:41

Bizare postfix problems with file ownership
 
I had problem with non working postfix server (after unsucessfuly completed ISPConfig installation) and I solved it with removing it (yum remove postfix) and installing it from source (postfix 2.9.4, built as root).

I had to install 2.7 or newer because virtualmin forced me. After that, mail server started to send test email and could get it.

But, after that, I noticed that I can receive outside emails but can not send mails to any other domain (only to other emails on my domain, nemogucamisija.com). Error code was:
Quote:

Out: 220 nemogucamisija.com ESMTP Postfix
In: EHLO mail-bk0-f46.google.com
Out: 250-nemogucamisija.com
Out: 250-PIPELINING
Out: 250-SIZE 10240000
Out: 250-VRFY
Out: 250-ETRN
Out: 250-STARTTLS
Out: 250-AUTH PLAIN LOGIN
Out: 250-AUTH=PLAIN LOGIN
Out: 250-ENHANCEDSTATUSCODES
Out: 250-8BITMIME
Out: 250 DSN
In: STARTTLS
Out: 454 4.7.0 TLS not available due to local problem
In: QUIT
Out: 221 2.0.0 Bye
Then I noticed that postfix can not access certificate. Disabled TLS but now I can not set Transport Mapping, cause postfix can not access /etc/postfix/transport . Tried
Quote:

chown postfix:postfix /etc/postfix/transport
chmod 777 /etc/postfix/transport
and
Quote:

postmap /etc/postfix/transport
postmap: fatal: open database /etc/postfix/transport.db: Permission denied
I know building it as a root was not smartest idea, but tutorial required it. So, what I shoul do to fix this? Or, any other solution to enable sending emails to other domains than my own?

Thanks in advance!

TiTex 3rd September 2012 13:48

what about /etc/postfix/ dir permisions ?

ls -ld /etc/postfix/

lazacom 3rd September 2012 13:50

drwxr-xr-x 2 root root 4096 Sep 3 11:22 /etc/postfix/

TiTex 3rd September 2012 14:20

that's ok ... postfix would have read privileges
so it must be something else wrong , did you check the other files permisions ?

i would suggest recreating the certificate http://postfix.state-of-mind.de/patr...s_support.html

ls -l /etc/postfix/

lazacom 3rd September 2012 16:01

Ok, will do it, but my main problem is no more TLS support, but to enable postfix to send emails outside my domain. Do you have some solution for that? It seems that without transport mapping I can't do that.

And I can't make postfix access those files (/etc/postfix/transport), it keeps telling me:
Quote:

Error while saving a mapping : No map file defined

TiTex 3rd September 2012 16:28

that is very abstract , you should better check /var/log/maillog for more informations upon what's wrong.
also if you followed a HowTo , you should post the link but first dublechek it ... maybe you've missed something in your configuration.

lazacom 6th September 2012 12:30

After server reboot, postfix is finally able to access files, including /var/log/maillog. But I still can not send mails to external domains. Here is output of maillog:
Quote:

Sep 6 11:17:09 server02 postfix/smtpd[30377]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Sep 6 11:17:09 server02 postfix/proxymap[30378]: error: open /etc/postfix/mysql-virtual_mailboxes.cf: No such file or directory
Sep 6 11:17:09 server02 postfix/smtpd[30377]: connect from 109-92-11-38.dynamic.isp.telekom.rs[109.92.11.38]
Sep 6 11:17:09 server02 postfix/proxymap[30378]: error: open /etc/postfix/mysql-virtual_domains.cf: No such file or directory
Sep 6 11:17:09 server02 postfix/trivial-rewrite[30380]: fatal: open dictionary: expecting "type:name" form instead of "/etc/postfix/transport"
Sep 6 11:17:10 server02 postfix/master[26436]: warning: process /usr/libexec/postfix/trivial-rewrite pid 30380 exit status 1
Sep 6 11:17:10 server02 postfix/master[26436]: warning: /usr/libexec/postfix/trivial-rewrite: bad command startup -- throttling
Sep 6 11:17:18 server02 dovecot: pop3-login: Disconnected (auth failed, 1 attempts): user=<office@nemogucamisija.com>, method=PLAIN, rip=109.121.92.53, lip=5.$
Sep 6 11:18:10 server02 postfix/trivial-rewrite[30390]: fatal: open dictionary: expecting "type:name" form instead of "/etc/postfix/transport"
Sep 6 11:18:11 server02 postfix/master[26436]: warning: process /usr/libexec/postfix/trivial-rewrite pid 30390 exit status 1
Sep 6 11:18:11 server02 postfix/master[26436]: warning: /usr/libexec/postfix/trivial-rewrite: bad command startup -- throttling
where first line looks suspicious to me. Any help?

lazacom 6th September 2012 12:52

Closed and opened new thread for new problem. Tnx


All times are GMT +2. The time now is 18:01.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.