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 19th September 2006, 15:56
adam adam is offline
Member
 
Join Date: Aug 2006
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default postfix - myhostname, mydoman problem

I have vhcs2 setup with several virtual domains.

My postfix log keeps reporting the following error:

Code:
Sep 19 12:00:01 viking postfix/trivial-rewrite[32391]: warning: do not list domain todiefor.nu in BOTH mydestination and virtual_mailbox_domains
Sep 19 12:11:51 viking postfix/trivial-rewrite[782]: warning: do not list domain todiefor.nu in BOTH mydestination and virtual_mailbox_domains
Sep 19 12:18:31 viking postfix/virtual[2012]: fatal: gethostbyname: Success
Sep 19 12:18:32 viking postfix/qmgr[31125]: warning: premature end-of-input on private/virtual socket while reading input attribute name
Sep 19 12:18:32 viking postfix/qmgr[31125]: warning: private/virtual socket: malformed response
Sep 19 12:18:32 viking postfix/qmgr[31125]: warning: transport virtual failure -- see a previous warning/fatal/panic logfile record for the problem description

in my master.cf file I have set the following because of some of my mails being reject with an incorrect HELO statement.

Code:
#myhostname = viking
myhostname = viking.todiefor.nu
#mydomain = viking.local
mydomain = todiefor.nu
myorigin = $mydomain
Now, my server hostname is called "viking.todiefor.nu" and my reversedns is "viking.todiefor.nu"

In my vhcs2 domains file i have one of many other vdmn_entry records which reads:
Code:
todiefor.nu                     vdmn_entry
Bearing in mind that i use a few other virtual hosts with completely different names, what do i need to do to stop the above error happening in postfix mail.warn? I don't *seem* to have a problem sending or receiving emails but i'd like to stop the warning anyway.

Is the above warning a problem?
Reply With Quote
Sponsored Links
  #2  
Old 19th September 2006, 16:21
adam adam is offline
Member
 
Join Date: Aug 2006
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default es

myhostname = viking
mydomain = viking.local

i've had to put it back like this for now becuase the emails stopped working.

But the HELO tag reads just "viking" instead of "viking.todiefor.nu".

Any ideas how i can fix this without interferring with the virtual hosting domain?
Reply With Quote
  #3  
Old 20th September 2006, 17:42
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,721 Times in 2,562 Posts
Default

Change myhostname back to
Code:
myhostname = viking.todiefor.nu
What's in mydestination? Maybe you can post the full main.cf here (please strip out the comments)?
__________________
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 20th September 2006, 23:32
adam adam is offline
Member
 
Join Date: Aug 2006
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Code:
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
program_directory = /usr/lib/postfix

inet_interfaces = all
mynetworks_style = host
#mynetworks = 85.227.141.0/24, 127.0.0.0/8
myhostname = viking.todiefor.nu
mydomain = viking.local
myorigin = $mydomain

smtpd_banner = $myhostname VHCS2 2.4 Spartacus Managemydestination = $myhostname, $mydomain
append_dot_mydomain = no
append_at_myorigin = yes
local_transport = local
virtual_transport = virtual
transport_maps = hash:/etc/postfix/vhcs2/transport
d ESMTP 2.4.6.2
setgid_group = postdrop

mail_spool_directory = /var/mail
mailbox_size_limit = 0
mailbox_command = procmail -a "$EXTENSION"

biff = no

alias_database = hash:/etc/aliases
alias_maps = $alias_database

local_destination_recipient_limit = 1
local_recipient_maps = unix:passwd.byname $alias_database

virtual_mailbox_base = /var/mail/virtual
virtual_mailbox_limit = 0

virtual_mailbox_domains = hash:/etc/postfix/vhcs2/domains
virtual_mailbox_maps = hash:/etc/postfix/vhcs2/mailboxes

virtual_alias_maps = hash:/etc/postfix/vhcs2/aliases

virtual_minimum_uid = 1002
virtual_uid_maps = static:1002
virtual_gid_maps = static:8

smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous

smtpd_sasl_local_domain = vhcs.net

broken_sasl_auth_clients = yes

smtpd_recipient_restrictions =
   permit_sasl_authenticated,
   permit_mynetworks,
   reject_unauth_destination
#added for clamav and spamassassin by vhcs installation script made by Wael Nasreddine
content_filter = smtp-amavis:[127.0.0.1]:10024
I did what you said and it's working better now. I still have a strange problem that I've recived mail from people and its come trhough as "blah@viking.local" which is weird.
Reply With Quote
  #5  
Old 21st September 2006, 19:40
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,721 Times in 2,562 Posts
Default

There's no mydestination line in your main.cf. What's the output of
Code:
postconf -d | grep mydestination
?
__________________
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
  #6  
Old 21st September 2006, 21:04
adam adam is offline
Member
 
Join Date: Aug 2006
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default

mydestination = $myhostname, $mydomain


sorry, i must have accidentally missed it when cutting and pasting.
result of that command is

Code:
mydestination = $myhostname, localhost.$mydomain, localhost
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks
relay_domains = $mydestination
Reply With Quote
  #7  
Old 22nd September 2006, 13:34
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,721 Times in 2,562 Posts
Default

Please run
Code:
postconf -e 'mydestination = $myhostname, localhost.$mydomain, localhost'
postconf -e 'myhostname = viking.todiefor.nu'
postconf -e 'mydomain = $myhostname'
and restart Postfix afterwards.
__________________
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
  #8  
Old 22nd September 2006, 23:48
adam adam is offline
Member
 
Join Date: Aug 2006
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks , Falko. Everything seems to be perfect now.

I'd like to express my gratitude and thanks for everything on this site. I've pretty much used all your guides and knowledge here to set up my business server (I installed VHCS2 to manage my virtual hosting) and it's been a tough ride and i've learned a lot.

I will defintely be supporting your site with the €35 subscription or whatever it was, it's worth the donation.
Reply With Quote
  #9  
Old 23rd September 2006, 00:16
adam adam is offline
Member
 
Join Date: Aug 2006
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default

actually, I do have another question concering the mail log.

host eni-mail01.sth.basefarm.net[80.76.148.4] said: 451 Invalid sender <www-data@viking.local> (in reply to RCPT TO command)


to=<hxxx@passagen.se>, relay=eni-mail02.sth.basefarm.net[80.76.148.5], delay=282682, status=deferred (host eni-mail02.sth.basefarm.net[80.76.148.5] said: 451 Invalid sender <www-data@viking.local> (in reply to RCPT TO command))


Are these errors with my server or problems with the destination?
Reply With Quote
  #10  
Old 23rd September 2006, 16:20
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,721 Times in 2,562 Posts
 
Default

The destination server is rejecting your mails because viking.local is no valid domain.
__________________
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
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
postfix problems with smtp linkdeb Server Operation 13 15th March 2014 17:58
postfix SASL problem Abe HOWTO-Related Questions 10 18th August 2006 17:53
Postfix Problem rlhesson Installation/Configuration 2 9th August 2006 03:49
Postfix + Fedora Core 5 64Bit - Problem GrBase HOWTO-Related Questions 5 7th August 2006 13:41
postfix problem flourishing General 1 7th December 2005 17:39


All times are GMT +2. The time now is 16:14.


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