PDA

View Full Version : postfix


kaliszakpl
13th March 2008, 21:56
HI i dont know wat is wrong i can send mail but i can recive mail why ??

there is my config

my server have ip 192.168.0.100 it is connect to router - outside ip is 89.228.205.10


# See /usr/share/postfix/main.cf.dist for a commented, more complete version


# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

# TLS parameters
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = server.aaa.pl
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = server.aaa.pl, localhost.aaa.pl, , localhost, mail.aaa.pl, rudowicz.pl
relayhost =
mynetworks = 127.0.0.0/8, 192.168.0.100, 89.228.205.10, 192.168.0.1
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject _unauth_destination
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom

virtual_maps = hash:/etc/postfix/virtusertable

mydestination = /etc/postfix/local-host-names

jnsc
13th March 2008, 23:08
did you nat port 25 on your router?

kaliszakpl
14th March 2008, 12:32
in router i youst have DMZ to 192.168.0.100

kaliszakpl
14th March 2008, 12:44
i send my vistual host
and bind config

On ISPconfig -> Management ->Settings i have
IP Address: 192.168.0.100
IP List: 89.228.205.10
then
Default Ns1: ns1.aaa.pl
Default Ns2: ns1.atomdns.net
Default MX is mark

On ISPConfig -> DNS Manager -> aaa.pl
IP Address: 89.228.205.10 or mayby should be 192.168.0.100
Nameserver 1: ns1.aaa.pl
Nameserver 2: ns1.atomdns.net
Maybe some can help :(


$TTL 43200
@ IN SOA ns1.aaa.pl. admin.aaa.pl. (
2008031414 ; serial, todays date + todays serial #
28800 ; refresh, seconds
7200 ; retry, seconds
604800 ; expire, seconds
43200 ) ; minimum, seconds
;
NS ns1.aaa.pl. ; Inet Address of name server 1
NS ns1.atomdns.net. ; Inet Address of name server 2
;

MX 40 www.aaa.pl.
aaa.pl MX 10 mail.aaa.pl.
aaa.pl MX 20 mail.

aaa.pl. A 89.228.205.10
www A 192.168.0.100
www A 89.228.205.10

rudowicz.pl. TXT "v=spf1 a mx ptr ~all"

;;;; MAKE MANUAL ENTRIES BELOW THIS LINE! ;;;;


Virtual host

###################################
#
# ISPConfig vHost Configuration File
# Version 1.0
#
###################################
#
NameVirtualHost 192.168.0.100:80
<VirtualHost 192.168.0.100:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
</VirtualHost>
NameVirtualHost 89.228.205.10:80
<VirtualHost 89.228.205.10:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
</VirtualHost>
#
#
######################################
# Vhost: www.aaa.pl:80
######################################
#
#
<VirtualHost 89.228.205.10:80>
ServerName www.aaa.pl:80
ServerAdmin webmaster@rudowicz.pl
DocumentRoot /var/www/web1/web
ServerAlias aaa.pl
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
Alias /cgi-bin/ /var/www/web1/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /var/www/web1/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php3>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php4>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php5>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
php_admin_flag safe_mode On
php_admin_value open_basedir /var/www/web1/
php_admin_value file_uploads 1
php_admin_value upload_tmp_dir /var/www/web1/phptmp/
php_admin_value session.save_path /var/www/web1/phptmp/
Alias /error/ "/var/www/web1/web/error/"
ErrorDocument 400 /error/invalidSyntax.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 405 /error/methodNotAllowed.html
ErrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html
AliasMatch ^/~([^/]+)(/(.*))? /var/www/web1/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web1/user/$1/web/$3
</VirtualHost>
#
#
#

falko
14th March 2008, 15:17
What exactly is your problem? Do you have problems with email (if so, with sending or receiving?) or with your web server?

kaliszakpl
14th March 2008, 15:29
I can revice mails and at the monet i dont see from autside my webpage
now i see shared ip

kaliszakpl
14th March 2008, 15:31
Maybe you can chect my ISPConfig
ai you want i can send my logind and pass what you thing ?

falko
15th March 2008, 18:48
I can revice mailsAnd what about sending emails?

at the monet i dont see from autside my webpage
now i see shared ipWhat's in Vhosts_ispconfig.conf, and what's the output of ifconfig?

kaliszakpl
15th March 2008, 19:43
###################################
#
# ISPConfig vHost Configuration File
# Version 1.0
#
###################################
#
NameVirtualHost 192.168.0.1:80
<VirtualHost 192.168.0.1:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
</VirtualHost>
NameVirtualHost 192.168.0.100:80
<VirtualHost 192.168.0.100:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
</VirtualHost>
NameVirtualHost 89.228.205.2:80
<VirtualHost 89.228.205.2:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
</VirtualHost>
#
#
######################################
# Vhost: www.rudowicz.pl:80
######################################
#
#
<VirtualHost 89.228.205.2:80>
ServerName www.rudowicz.pl:80
ServerAdmin webmaster@rudowicz.pl
DocumentRoot /var/www/web1/web
ServerAlias rudowicz.pl
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
Alias /cgi-bin/ /var/www/web1/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /var/www/web1/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php3>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php4>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php5>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
php_admin_flag safe_mode On

kaliszakpl
15th March 2008, 19:46
php_admin_value open_basedir /var/www/web1/
php_admin_value file_uploads 1
php_admin_value upload_tmp_dir /var/www/web1/phptmp/
php_admin_value session.save_path /var/www/web1/phptmp/
<IfModule mod_ruby.c>
<Directory /var/www/web1/web>
Options +ExecCGI
</Directory>
RubyRequire apache/ruby-run
#RubySafeLevel 0
<Files *.rb>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
</Files>
<Files *.rbx>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
</Files>
</IfModule>
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
Alias /error/ "/var/www/web1/web/error/"
ErrorDocument 400 /error/invalidSyntax.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 405 /error/methodNotAllowed.html
ErrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html
AliasMatch ^/~([^/]+)(/(.*))? /var/www/web1/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web1/user/$1/web/$3
</VirtualHost>
#

kaliszakpl
15th March 2008, 19:48
root@server:~# ifconfig
ath0 Link encap:Ethernet HWaddr 00:90:96:F6:A1:3B
inet addr:192.168.0.100 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::290:96ff:fef6:a13b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4256 errors:0 dropped:0 overruns:0 frame:0
TX packets:4684 errors:49 dropped:49 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2702444 (2.5 MB) TX bytes:1154783 (1.1 MB)

eth0 Link encap:Ethernet HWaddr 00:02:3F:D9:74:DB
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:18 Base address:0xe800

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:479 errors:0 dropped:0 overruns:0 frame:0
TX packets:479 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:39073 (38.1 KB) TX bytes:39073 (38.1 KB)

wifi0 Link encap:UNSPEC HWaddr 00-90-96-F6-A1-3B-00-00-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:26049 errors:0 dropped:0 overruns:0 frame:353
TX packets:4974 errors:0 dropped:49 overruns:0 carrier:0
collisions:0 txqueuelen:199
RX bytes:5958462 (5.6 MB) TX bytes:1376419 (1.3 MB)
Interrupt:19

root@server:~#

falko
16th March 2008, 15:46
###################################
#
# ISPConfig vHost Configuration File
# Version 1.0
#
###################################
#
NameVirtualHost 192.168.0.1:80
<VirtualHost 192.168.0.1:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
</VirtualHost>
NameVirtualHost 192.168.0.100:80
<VirtualHost 192.168.0.100:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
</VirtualHost>
NameVirtualHost 89.228.205.2:80
<VirtualHost 89.228.205.2:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
</VirtualHost>
#
#
######################################
# Vhost: www.rudowicz.pl:80
######################################
#
#
<VirtualHost 89.228.205.2:80>
ServerName www.rudowicz.pl:80
ServerAdmin webmaster@rudowicz.pl
DocumentRoot /var/www/web1/web
ServerAlias rudowicz.pl
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
Alias /cgi-bin/ /var/www/web1/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /var/www/web1/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php3>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php4>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php5>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
php_admin_flag safe_mode OnYou are using the wrong IP address in ISPConfig. You must use the one that you see in the ifconfig output (-> 192.168.0.100).

kaliszakpl
16th March 2008, 17:28
I it not that
i try this early and was this same
i still dont know what to do :/
something is wrong with ISPConfig :/

at thme monet what i mast have in Management Settings
and what in ISP Manager ??
i dont know i do everything like in
ISP Server Setup with Ubuntu 7.10 (Gutsy Gibbon)

if you want mayby you can log in to my ispconfig
http://89.228.205.2:81
Login: admin Pass: admin and check whati is wrong
i do every day something else and nothing work
i realy dont know what to do next :/
thanks

falko
17th March 2008, 16:05
something is wrong with ISPConfig :/No, ISPConfig is ok.

at thme monet what i mast have in Management Settings
and what in ISP Manager ??Please enter 192.168.0.100 as the IP address and remove all other IP addresses. Then update one of your web sites in ISPConfig so that Vhosts_ispconfig.conf gets rewritten with the correct IP address.