Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 2nd December 2008, 18:54
Been Told Been Told is offline
HowtoForge Supporter
 
Join Date: Nov 2008
Posts: 123
Thanks: 29
Thanked 10 Times in 4 Posts
Question Problem with postfix, ISPconfig on a Strato vServer

Hi!
I have the following setup that I recently installed ISPconfig on:
vServer Strato
Debian Etch
ISPconfig 2.2.7
The assumed domain name here is domain.tld
My postfix/main.cf is the following (xxxxx replaces the server name)
Code:
Datei: /etc/postfix/main.cf

myhostname = xxxxxxxx.stratoserver.net
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
#mydestination = xxxxxxxx.stratoserver.net, xxxxxxxx.stratoserver.net, localhost.stratoserver.net, localhost
relayhost =
mynetworks = 127.0.0.0/8
mailbox_command =
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
home_mailbox = Maildir/

virtual_maps = hash:/etc/postfix/virtusertable

mydestination = /etc/postfix/local-host-names
The Problem I am having is that when I try to send e-Mail via Outlook, I get the following e-mail back:
Code:
Your message did not reach some or all of the intended recipients.

      Subject:	Wir prfen
      Sent:	02.12.2008 16:35

The following recipient(s) cannot be reached:

      'mail@recipient.tld' on 02.12.2008 16:35
            554 5.7.1 <mail@recipient.tld>: Relay access denied
And the e-mail doesn't get sent.
When I send an e-mail TO the account, I get the following e-Mail back:

Code:
Reporting-MTA: dns; xxxxxxx.stratoserver.net
X-Postfix-Queue-ID: 5A3AD21838A
X-Postfix-Sender: rfc822; mail@recipient.tld
Arrival-Date: Tue,  2 Dec 2008 16:51:02 +0100 (CET)

Final-Recipient: rfc822; web1_test@xxxxxx.stratoserver.net
Original-Recipient: rfc822;paul@domain.tld
Action: failed
Status: 5.4.4
Diagnostic-Code: X-Postfix; Host or domain name not found. Name service error
    for name=xxxxxx.stratoserver.net type=A: Host not found
Now, this is only my second server I've ever administered and I may have made a misstake.
On my other server, when ISPconfig asked me what server name and domain I wanted to use, I always used server1 as the server name and an assumed domain.tld the domain.
But on this occasion I used xxxxxx.stratoserver.net instead of server1.domain.tld.

Could that be the cause of the problem?

EDIT:
I have added A records for xxxxx.stratoserver.net, but the problem still exists.
Reply With Quote
Sponsored Links
  #2  
Old 2nd December 2008, 22:19
Been Told Been Told is offline
HowtoForge Supporter
 
Join Date: Nov 2008
Posts: 123
Thanks: 29
Thanked 10 Times in 4 Posts
Default

The relevant error message:
Code:
Dec  2 21:15:06 XXXXXXXX courierpop3login: LOGIN, user=web1_email, ip=[::ffff:91.1.11.111]
Dec  2 21:15:06 XXXXXXXX courierpop3login: LOGOUT, user=web1_email, ip=[::ffff:91.1.11.111], top=0, retr=0, rcvd=12, sent=39, time=0
Dec  2 21:15:07 XXXXXXXX postfix/smtpd[9753]: connect from ******.dip.t-dialin.net[91.1.11.111]
Dec  2 21:15:07 XXXXXXXX postfix/smtpd[9753]: NOQUEUE: reject: RCPT from ******.dip.t-dialin.net[91.1.11.111]: 554 5.7.1 <email@domain.tld>: Rela$
Dec  2 21:15:07 XXXXXXXX postfix/smtpd[9753]: disconnect from ******.dip.t-dialin.net[91.1.11.111]
XXXXXXXX is the server name.
Reply With Quote
  #3  
Old 3rd December 2008, 17:31
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,748 Times in 2,579 Posts
Default

Quote:
Originally Posted by Been Told View Post
The Problem I am having is that when I try to send e-Mail via Outlook, I get the following e-mail back:
Code:
Your message did not reach some or all of the intended recipients.

      Subject:	Wir prfen
      Sent:	02.12.2008 16:35

The following recipient(s) cannot be reached:

      'mail@recipient.tld' on 02.12.2008 16:35
            554 5.7.1 <mail@recipient.tld>: Relay access denied
You must enable "Server requires authentication" in your email client.

Quote:
Originally Posted by Been Told View Post
When I send an e-mail TO the account, I get the following e-Mail back:

Code:
Reporting-MTA: dns; xxxxxxx.stratoserver.net
X-Postfix-Queue-ID: 5A3AD21838A
X-Postfix-Sender: rfc822; mail@recipient.tld
Arrival-Date: Tue,  2 Dec 2008 16:51:02 +0100 (CET)

Final-Recipient: rfc822; web1_test@xxxxxx.stratoserver.net
Original-Recipient: rfc822;paul@domain.tld
Action: failed
Status: 5.4.4
Diagnostic-Code: X-Postfix; Host or domain name not found. Name service error
    for name=xxxxxx.stratoserver.net type=A: Host not found
What are the outputs of
Code:
hostname
and
Code:
hostname -f
and what's in /etc/hosts?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #4  
Old 3rd December 2008, 19:30
Been Told Been Told is offline
HowtoForge Supporter
 
Join Date: Nov 2008
Posts: 123
Thanks: 29
Thanked 10 Times in 4 Posts
Default

Quote:
Originally Posted by falko View Post
You must enable "Server requires authentication" in your email client.
It was enabled from the start.
Quote:
What are the outputs of
Code:
hostname
and
Code:
hostname -f
and what's in /etc/hosts?
hostname and hostname -f both return:
hXXXXX.stratoserver.net
/etc/hosts is:
Code:
127.0.0.1  localhost.localdomain localhost
85.XXX.XXX.XXX hXXXXX.stratoserver.net hXXXXXX
Thanks for your reply falko.
Reply With Quote
  #5  
Old 5th December 2008, 00:21
Been Told Been Told is offline
HowtoForge Supporter
 
Join Date: Nov 2008
Posts: 123
Thanks: 29
Thanked 10 Times in 4 Posts
 
Default

Looks like the matter is settled. The guy I'm installing the server software for has decided to go with openSUSE and Plesk. Thanks for your help falko.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail server using Postfix, Dovecot, Mysql... Postfix virtual maps doesn't work?? tarasbuljba HOWTO-Related Questions 33 28th May 2010 15:33
CentoS doesn't send the emails vaio1 Installation/Configuration 18 5th November 2008 18:51
ISPConfig Postfix question morganew Installation/Configuration 6 8th April 2008 17:37
ISPConfig with postfix problem Chrisssssss General 30 21st January 2007 00:34
postfix ISPconfig problem matehortua Installation/Configuration 8 3rd September 2006 18:03


All times are GMT +2. The time now is 15:39.


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