LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 03-25-2013, 12:44 AM   #1
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534
Sendmail not forwarding in VirtualBox systems


None of my VirtualBox systems will forward mail. The mails move immediately from /var/mail to the mqueue directory and sit there forever.

Forwarding works fine with my four real machines.

The only clue I saw was in the mail logs that the connection timed out.

This all worked just fine not long ago. I don't know when the forwarding stopped. Is there anything special that needs to be done with VirtualVox?

NFS mounts, rwall, telnet, and ssh all work fine, both directions.

Thanks.

Edit: Yes, I tested with no iptables firewall.

Last edited by Woodsman; 03-25-2013 at 01:20 AM.
 
Old 03-26-2013, 06:16 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
Have you run a packet sniffer like wireshark to see what is happening? Also what do the receiving server's logs say - was the connection from the virtual box successful?

Sorry that's not much help
 
Old 03-26-2013, 06:58 PM   #3
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Original Poster
Rep: Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534
I didn't use a sniffer but I did something similar, using strace. I used sendmail -q -v to force the mail out of the queue. The process always stalled reading my /etc/hosts. I use /etc/hosts as a mini DNS server, populated with the host names of all of my local network systems and my Firefox bookmarks. Nothing fancy or huge. Four of the entries were stale. Sendmail was stalling on one of the stale entries.

I have no idea why sendmail is parsing the entire hosts file or why sendmail is performing DNS lookups when the destination IP address for my local machines are all correct and in the hosts file. I need to look into that.

I could manually send mails all day on the physical machines and they forwarded instantly. The mails always stalled in the queue with the virtual machines. Removing the stale hosts entries helped but I'm baffled over the strange behavior. Why only virtual machines were affected and not the physical machines. Same config files, same hosts files, etc., all through my network.

I initially suspected problems with ipv6 and I found some related unresolved VirtualBox bug reports. I don't need ipv6 anywhere within my local network so I disabled that overhead on all systems. I don't know whether ipv6 was playing a role in the problem.

The mystery got deeper. I run a weekly cron script to update the Firefox bookmarks in the hosts file. I was using OpenDNS, but that service behaves a tad odd with stale or non existent domain names. My script was not written for that. I changed the script to use Google DNS servers and the problem is now gone and I should no longer have stale entries in the hosts file.

I still don't know the root cause of the sendmail behavior.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Virtualization solutions on Linux systems - KVM and VirtualBox LXer Syndicated Linux News 0 09-23-2011 07:20 PM
qemu vs VirtualBox user/hoset-only networking and port forwarding dashesy Linux - Virtualization and Cloud 5 09-20-2011 11:10 AM
LXer: Tech Tip: Port Forwarding in Virtualbox with VBoxManage LXer Syndicated Linux News 0 09-11-2009 12:20 AM
Setting up Sendmail on Virtualbox? your_shadow03 Linux - Server 5 07-07-2009 02:12 AM
Mail forwarding using Sendmail yunus.raza Linux - Software 4 04-19-2008 02:44 AM


All times are GMT -5. The time now is 09:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration