
7th February 2006, 14:04
|
|
Junior Member
|
|
Join Date: Feb 2006
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
|
Originally Posted by Raffnix
Thx for the help so far.
Unfortunately I have to reset the server and reinstall everything. If I run again in this problem, I will return here. For now, the problem is "solved"
Thank you anyway.
|
So here I am again
I'm sorry but the problems consist (at least partially)
Status:
Mail receiving OK
Mail sending OK with Outlook Express
Mail sending fails with Uebimail
(Error: It was not possible to send this e-mail
SMTP Error: Recipient not accepted. Verify your relay rules)
Mail log says:
Quote:
Feb 7 14:43:57 aphrodite postfix/smtpd[16073]: connect from localhost[::1]
Feb 7 14:43:57 aphrodite postfix/smtpd[16073]: NOQUEUE: reject: RCPT from localhost[::1]: 554 <some@address.tld>: Relay access denied; from=<webmaster@mydomain.tld> to=<some@address.tld> proto=SMTP helo=<UebiMiau>
Feb 7 14:43:57 aphrodite postfix/smtpd[16073]: lost connection after RCPT from localhost[::1]
Feb 7 14:43:57 aphrodite postfix/smtpd[16073]: disconnect from localhost[::1]
|
Edit: Added "check_relay_domain" as said here
http://www.howtoforge.com/forums/sho...ail+send+error
and reloaded postfix but that did not help
Proftp still "offline"
Access with FTP-Client seems to be OK (User is confined to his folders)
Access with Web-FTP fails (Error: Could not connect to localhost)
proftpd.conf:
Quote:
#
# /etc/proftpd.conf -- This is a basic ProFTPD configuration file.
# To really apply changes reload proftpd after modifications.
#
ServerName "Debian"
ServerType standalone
DeferWelcome off
MultilineRFC2228 on
DefaultServer on
ShowSymlinks on
TimeoutNoTransfer 600
TimeoutStalled 600
TimeoutIdle 1200
DisplayLogin welcome.msg
DisplayFirstChdir .message
ListOptions "-l"
DenyFilter \*.*/
# Uncomment this if you are using NIS or LDAP to retrieve passwords:
#PersistentPasswd off
# Uncomment this if you would use TLS module:
#TLSEngine on
# Uncomment this if you would use quota module:
#Quotas on
# Uncomment this if you would use ratio module:
#Ratios on
# Port 21 is the standard FTP port.
Port 21
# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
# at once, simply increase this value. Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
MaxInstances 30
# Set the user and group that the server normally runs at.
User nobody
Group nogroup
# Umask 022 is a good standard umask to prevent new files and dirs
# (second parm) from being group and world writable.
Umask 022 022
# Normally, we want files to be overwriteable.
AllowOverwrite on
# Delay engine reduces impact of the so-called Timing Attack described in
# http://security.lss.hr/index.php?pag...LSS-2004-10-02
# It is on by default.
#DelayEngine off
# A basic anonymous configuration, no upload directories.
# <Anonymous ~ftp>
# User ftp
# Group nogroup
# # We want clients to be able to login with "anonymous" as well as "ftp"
# UserAlias anonymous ftp
# # Cosmetic changes, all files belongs to ftp user
# DirFakeUser on ftp
# DirFakeGroup on ftp
#
# RequireValidShell off
#
# # Limit the maximum number of anonymous logins
# MaxClients 10
#
# # We want 'welcome.msg' displayed at login, and '.message' displayed
# # in each newly chdired directory.
# DisplayLogin welcome.msg
# DisplayFirstChdir .message
#
# # Limit WRITE everywhere in the anonymous chroot
# <Directory *>
# <Limit WRITE>
# DenyAll
# </Limit>
# </Directory>
#
# # Uncomment this if you're brave.
# # <Directory incoming>
# # # Umask 022 is a good standard umask to prevent new files and dirs
# # # (second parm) from being group and world writable.
# # Umask 022 022
# # <Limit READ WRITE>
# # DenyAll
# # </Limit>
# # <Limit STOR>
# # AllowAll
# # </Limit>
# # </Directory>
#
# </Anonymous>
DefaultRoot ~
IdentLookups off
ServerIdent on "FTP Server ready."
Include /etc/proftpd_ispconfig.conf
|
Last edited by Raffnix; 7th February 2006 at 19:21.
|

7th February 2006, 21:45
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,685
Thanks: 1,899
Thanked 2,599 Times in 2,448 Posts
|
|
Quote:
|
Originally Posted by Raffnix
So here I am again
I'm sorry but the problems consist (at least partially)
Status:
Mail receiving OK
Mail sending OK with Outlook Express
Mail sending fails with Uebimail
(Error: It was not possible to send this e-mail
SMTP Error: Recipient not accepted. Verify your relay rules)
Mail log says:
Edit: Added "check_relay_domain" as said here
http://www.howtoforge.com/forums/sho...ail+send+error
and reloaded postfix but that did not help
|
Did you restart Postfix after your changes?
Quote:
|
Originally Posted by Raffnix
Proftp still "offline"
Access with FTP-Client seems to be OK (User is confined to his folders)
Access with Web-FTP fails (Error: Could not connect to localhost)
proftpd.conf:
|
Please post the output of
|

7th February 2006, 22:16
|
|
Junior Member
|
|
Join Date: Feb 2006
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Yes, I restarted postfix, and the mail.log still says the same as quoted above
netstat:
Code:
Aktive Internetverbindungen (Server und stehende Verbindungen)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 localhost:mysql *:* LISTEN 2093/mysqld
tcp 0 0 *:81 *:* LISTEN 2285/ispconfig_http
tcp 0 0 *:ftp *:* LISTEN 3125/proftpd: (acce
tcp 0 0 aphrodite.mydoma:domain *:* LISTEN 2445/named
tcp 0 0 localhost:domain *:* LISTEN 2445/named
tcp 0 0 *:smtp *:* LISTEN 14122/master
tcp 0 0 localhost:953 *:* LISTEN 2445/named
tcp6 0 0 *:imaps *:* LISTEN 2010/couriertcpd
tcp6 0 0 *:pop3s *:* LISTEN 2031/couriertcpd
tcp6 0 0 *:pop3 *:* LISTEN 2018/couriertcpd
tcp6 0 0 *:imap2 *:* LISTEN 1997/couriertcpd
tcp6 0 0 *:www *:* LISTEN 2315/apache2
tcp6 0 0 *:ssh *:* LISTEN 2247/sshd
tcp6 0 0 *:smtp *:* LISTEN 14122/master
tcp6 0 0 localhost:953 *:* LISTEN 2445/named
tcp6 0 0 *:https *:* LISTEN 2315/apache2
And by the way: I want to thank you for this program and especially for the fast and friendly support everyone gets here. This is really outstanding!
|

8th February 2006, 01:07
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,685
Thanks: 1,899
Thanked 2,599 Times in 2,448 Posts
|
|
What's in /etc/hosts? Please post the output of
|

8th February 2006, 08:41
|
|
Junior Member
|
|
Join Date: Feb 2006
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
etc/hosts:
Code:
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
xx.xx.xx.xx aphrodite.mydomain.tld aphrodite
changed it to
Code:
127.0.0.1 localhost.localdomain localhost
xx.xx.xx.xx aphrodite.mydomain.tld aphrodite
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
and rebooted but no change
netstat is now
Code:
aphrodite:~# netstat -tap
Aktive Internetverbindungen (Server und stehende Verbindungen)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 localhost.localdo:mysql *:* LISTEN 2095/mysqld
tcp 0 0 *:81 *:* LISTEN 2297/ispconfig_http
tcp 0 0 *:ftp *:* LISTEN 2466/proftpd: (acce
tcp 0 0 aphrodite.mydoma:domain *:* LISTEN 2453/named
tcp 0 0 localhost.locald:domain *:* LISTEN 2453/named
tcp 0 0 localhost.localdoma:953 *:* LISTEN 2453/named
tcp 0 0 *:smtp *:* LISTEN 2436/master
tcp6 0 0 *:imaps *:* LISTEN 2012/couriertcpd
tcp6 0 0 *:pop3s *:* LISTEN 2031/couriertcpd
tcp6 0 0 *:pop3 *:* LISTEN 2020/couriertcpd
tcp6 0 0 *:imap2 *:* LISTEN 1999/couriertcpd
tcp6 0 0 *:www *:* LISTEN 2327/apache2
tcp6 0 0 *:ssh *:* LISTEN 2249/sshd
tcp6 0 0 localhost:953 *:* LISTEN 2453/named
tcp6 0 0 *:smtp *:* LISTEN 2436/master
tcp6 0 0 *:https *:* LISTEN 2327/apache2
iptables:
Code:
aphrodite:~# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
aphrodite:~#
Last edited by Raffnix; 8th February 2006 at 09:42.
|

8th February 2006, 10:18
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,685
Thanks: 1,899
Thanked 2,599 Times in 2,448 Posts
|
|
I guess the value of mynetworks is not correct in /etc/postfix/main.cf because otherwise you should be able to send from localhost (Uebimiau). Please post /etc/postfix/main.cf here.
|

8th February 2006, 10:26
|
|
Junior Member
|
|
Join Date: Feb 2006
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
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
myhostname = aphrodite.mydomain.tld
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
#mydestination = aphrodite.mydomain.tld, localhost.mydomain.tld, , localhost
relayhost =
mynetworks = 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = 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,check_relay_domains
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtpd_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
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
|

8th February 2006, 16:36
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,685
Thanks: 1,899
Thanked 2,599 Times in 2,448 Posts
|
|
Code:
mynetworks = 127.0.0.0/8
is correct...
Please run
Code:
postconf -e 'smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,check_relay_domains'
and restart Postfix.
|

8th February 2006, 18:02
|
|
Junior Member
|
|
Join Date: Feb 2006
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Success!! Sending with Webmail now works.
The necessary change to main.cf was not only to add "check_relay_domains" (which I already tried before) but to delete also "reject_unauth_destination"
That's really great, thank you for your help.
|

9th February 2006, 15:51
|
|
Junior Member
|
|
Join Date: Feb 2006
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
And what about FTP-Server: Offilne?
I have the same problem...
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 01:01.
|
Recent comments
1 day 2 hours ago
1 day 5 hours ago
1 day 17 hours ago
1 day 19 hours ago
2 days 9 min ago
2 days 6 hours ago
2 days 15 hours ago
2 days 17 hours ago
3 days 1 hour ago
3 days 3 hours ago