Sponsored Content
Operating Systems Linux Red Hat Mail Problem. Maybe, it is a DNS Problem! Post 302334247 by pintalgi on Wednesday 15th of July 2009 05:33:11 AM
Old 07-15-2009
Mail Problem. Maybe, it is a DNS Problem!

Hi,

i've a redhat linux 9 upadated by redhat from 7 version to 9 version. A couple of days ago i was a problem with my mail, in other words i'm not able to get any email nor to send any email. I've a proxy configuration and i tried to set iptables in order to verify the port. The 110,255 and 995 ports are opened but the mails on the client stations doesn't work. The mails works only on the server station in eth1 but it doesn't work in eth0. Therefore,i tried to verify name sever and it is incomplete, probably the automatic update raised the problem. Furthermore, i tried to pinging the host name (e.g. pop.gmail.com, domainame, ecc...) but it failed,the same thinks with the telnet command, the message was impossible to connect to the hostname or domainame.

I believe that it could be a band problem because it could not be able to link the IP with the hosts. Someone could ask to me why the http links work, so i believe that the optenet service is able to fix this problem,but only against http links.

Any idea? what do you think?

pintalgi

Last edited by pintalgi; 07-15-2009 at 07:19 AM..
 

10 More Discussions You Might Find Interesting

1. IP Networking

dns problem

helo all i got problem in my network i got sun 206 and i work with sendmail when i had the praimery dns of my isp i can send mail from the server but i cant send from the clinet (outlook in the network) and if i chnage it to secundery dns off my isp i can send frome the server and frome the... (2 Replies)
Discussion started by: nis
2 Replies

2. IP Networking

DNS problem

Hello! I´ve got a problem with the dns on one of our servers. When i try to look someting up with either nslookup or ping i get the folowing error message. -------------------------------------------------------------------------------- # nslookup sun.com *** Can't find server name for... (4 Replies)
Discussion started by: dozy
4 Replies

3. IP Networking

DNS Problem

Hello Everyone, I am working on a HP-Unix machine and I am trying to get it to use the University's DNS servers. Long story short... the resolv.conf file is ok : nameserver 149.150.51.1 nameserver 149.150.51.2 search shu.edu The hosts file is ok. And when I make the nsswitch.conf file... (1 Reply)
Discussion started by: loslappy
1 Replies

4. Solaris

DNS Problem

hello !!! I have some problem for Sun Solaris DNS i already configured named.boot , named.rev, named.hosts but when i start the DNS service there is an error " error cannot find named.conf " in my manual there is no named.conf configuration it said that if you configure named.boot... (3 Replies)
Discussion started by: giancarlodjabon
3 Replies

5. UNIX for Advanced & Expert Users

Mail/DNS problem and questions

It seems that mail from our servers are going through a third party security mail scanner (offsite), due the the mx records specified on our internal and external DNS servers. However, our internal user to user email does not go through the third party security mail scanner. I discovered... (2 Replies)
Discussion started by: xnightcrawl
2 Replies

6. Shell Programming and Scripting

DNS problem

sorry guys, I had big problem solving this simple problem..:D hope expertise here can solve this problem. ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 1361 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;. IN... (0 Replies)
Discussion started by: unknown2205
0 Replies

7. UNIX for Advanced & Expert Users

DNS problem

Hello again I having a wired problem if use nslookup to check some changes that I made to the blackhole list.First I'll check a site that I know has access throught our sever and it would time out. Then If I'll try it 10 seconds later it would work. Isn't that wierd. But my blackhole list site... (0 Replies)
Discussion started by: aojmoj
0 Replies

8. Ubuntu

dns problem

hello. i'm running ubuntu desktop 8.04 and i use it ot host some sites (actually i'm trying ) well i'm running to websites (with the same dns,ip) site1.com work fine but site2.com give me this Hmm, site2.com isn't loading right now. The computers that run site2.com are having some trouble.... (2 Replies)
Discussion started by: mazi
2 Replies

9. IP Networking

DNS problem?

I uploaded a new domain and I am having problems with the paths... Works..shop.mydomain.com/index.php?main_page=contact. Does Not Work..shop.mydomain.com/contact/. copied the entire directory from a working directory and changed the appropriate paths where necessary (as usual) so ...? ... (3 Replies)
Discussion started by: tifischer
3 Replies

10. Debian

Need help with DNS problem

I have a standalone PC running Debian 6. DNS stopped working suddenly. I haven't changed anything. Email works because it has the ip address of the mail server. Firefox can apparently fend for itself. nslookup some_url or nslookup some_ip_address returns: nslookup: parse of /etc/resolv.conf... (4 Replies)
Discussion started by: snorkack59
4 Replies
p3scan_readme(8)					      System Manager's Manual						  p3scan_readme(8)

NAME
p3scan_readme - readme for the p3scan tool DESCRIPTION
This is a fully transparent proxy-server for POP3, SMTP, and limited POP3S Clients. It runs on a Linux box with iptables (for port re- direction). It can be used to provide email scanning from/to the internet, to/from any internal network and is ideal for helping to protect your "Other OS" LAN from harm, especially when used synergically with a firewall and other Internet Proxy servers. It is designed to enable scanning of email messages for Viruses, Worms, Trojans, Spam (read as "Un-solicited Bulk Email"), and harmfull attachments. Because viewing HTML mail can enable a "Spammer" to validate an email address (via web bugs), it can also provide dangerous HTML tag stripping. OVERVIEW
It works typically in situations where the linux box lies between the network you wish to protect and the "outer world". You have to set up a port redirection rule with iptables (see "IP-Tables / Port redirecting") so that all connections from e.g. inside your office to any POP3, POP3S, and SMTP server outside in the world will not leave your router, but come to a local port, on which P3Scan lis- tens. P3Scan receives the original destination address of the "outer world" server from the Linux kernel and connects to that address. Anything received from the client will be sent to the server, and vice versa but with a little enhancement: when a message is sent from the server it's parsed, stored into a file, and scanned. If a virus is found a virus notification is sent instead of the original infected mes- sage, which can be quarantined or optionally deleted. If the message is destined for a server and a virus is found, the client will be notified that the server rejected their message due to a virus. The message can also be scanned for spam, have potentially dangerous attachments renamed, and have potentially malicious HTML parts stripped. In the case of incoming messages, this is performed in the following order: Attachments are scanned/renamed/deleted (optional) The message is scanned for virus's The message is scanned for SPAM (optional) The message is parsed for web bugs (optional) It should be possible to use any virus scanner using the scannertype=basic configuration option. Known to work with this scanner are FRISK F-Prot and Clam Anti Virus scanners. P3Scan provides other scannertype's for scanning using Kaspersky, Trophie, Clam (TCP) Anti-Virus Daemon's and also a bash script. Any C programmer can easily adapt p3scan for other scan-daemons. Neither the client nor the server has to be configured. None of them will ever notice that there's a mail scanner. From the server point of view the incoming connections are from the linux box IP. From the client point of view the only evidence of the presence of p3scan are virus notifications and some additional X-headers. REQUIREMENTS
iptables - Normally installed by default on major Linux Distributions. http://www.netfilter.org libpcre - Normally installed by default on major Linux Distributions. http://www.pcre.org ripmime - Needed if your virus scanner does not support email. http://www.pldaniels.com/ripmime/ An Anti-Virus program P3Scan is known to work with: Kaspersky Anti-Virus for Linux (AVPD) http://www.kaspersky.com/ Trophie Anti-Virus Daemon http://www.vanja.com/tools/trophie/ FRISK F-Prot Antivirus http://www.f-prot.com/ Clam Anti-Virus http://www.clamav.net/ F-Secure Anti-Virus http://www.f-secure.com/ Any other virus scanner that can output it's report to the console (stdout) so that it can be captured with "2>&1". DSPAM (optional) - http://www.nuclearelephant.com/projects/dspam/ Mail::SpamAssassin (optional) - http://www.spamassassin.org renattach (optional) - http://www.pc-tools.net/unix/renattach/ p3pmail (optional) - http://p3scan.sourceforge.net/#p3pmail Kernel: The following kernel-parameters have to be enabled to get P3Scan to work. If you have no clue about kernel-compiling, then here is some good news: Most of Linux Distributions (with kernel 2.4.x or greater) support what we need by default. However, if your distribution does not have it, please read your system documentation on how to add it to your kernel. -CONFIG_NETFILTER=y -CONFIG_IP_NF_IPTABLES=[y/m] -CONFIG_IP_NF_TARGET_REDIRECT=[y/m] COMPILATION
Change to the directory where you untar'ed the program and make any system specific changes as needed to the "user options" area of the Makefile, then as user: $ make and as root (su root) # make install The only binary will be copied to /usr/sbin/p3scan. Make install will also copy p3scan.conf and the p3scan-xx.mail files into /etc/p3scan while creating directories /etc/p3scan, /var/run/p3scan, /var/spool/p3scan, /var/spool/p3scan/children, and /var/spool/p3scan/notify. It will also create a symbolic link of /etc/p3scan/p3scan.mail to the language file specified in the Makefile. After this, you must prepare your configuration file as described below. Preparing / Manual Configuration: If you decide not to use "make install" (for example, you don't want gcc on your firewall machine where p3scan is going to run). Please ensure the following directories are created and that they are owned and readable/writable by only the user "mail" (default). As root, create the following directories: # mkdir /etc/p3scan # mkdir /var/run/p3scan # mkdir -p /var/spool/p3scan/children # mkdir -p /var/spool/p3scan/notify Make them "owned" by the user "mail" (default): # chown mail.mail /etc/p3scan # chown mail.mail /var/run/p3scan # chown -R mail.mail /var/spool/p3scan Then make them read/write by only our user: # chmod 700 /etc/p3scan # chmod 700 /var/run/p3scan # chmod -R 700 /var/spool/p3scan If you don't have the user "mail" and do not know how to create this user, please see your operating systems documentation on how to create a user. Change the symlink /etc/p3scan/p3scan.mail if you wish (this points to the template which is sent instead of a virus). If you use any spe- cial character (like German-umlauts) don't forget to set the charset to "utf8" (charset="utf8" vice charset="iso-8859-1"). Also, ensure the leading dot at the end of the file is there and has a carriage return after the dot. CONFIGURATION
The configuration file defaults to /etc/p3scan/p3scan.conf This file is a mixture of configuration data and documentation and MUST be modified to work correctly upon initial installation. You must specify AT LEAST how to call your anti-virus program and how to extract the virus name (if one is found). The purpose of p3scan is to provide virus protection to an internal network. So, not having a virus scanner is not an option. That being said, if you still do not want a virus scanner enabled, you can just set the scannertype/scanner to basic/"/usr/bin/cat". Currently, the default configuration is as follows (see p3scan.conf for more info): The PID file is stored in: pidfile = /var/run/p3scan/p3scan.pid The maximum simultaneous scans is: maxchilds = 10 We listen to any address: ip = 0.0.0.0 We listen only on: port = 8110 targetip and targetport are disabled. We extract destination url:port from iptables redirected packets. We run as: user = mail We create notification mails in: notifydir = /var/spool/p3scan/notify before sending. We default to storing infected messages in: virusdir = /var/spool/p3scan We keep infected mail. "justdelete" is not set. We send emergency notification emails to root and postmaster @localhost. We notify only the email client when a virus is detected. "extra" is not set. We use the default /bin/mail to send extra notification email when required. We do not check remaining disk space before scanning mail. "bytesfree" is not set We DO NOT have an Anti-Virus program selected, scanner return code, nor regular expression on how to extract a virus name. scannertype=basic "scanner" is not set "viruscode" is not set "virusregexp" is not set We DO NOT have any "Good" return codes set other than "0" (zero). "goodcode" is not set We DO NOT demime the message or separate attachments from the original mail before scanning. "demime" is not set We DO NOT send entire lines of email header while processing to keep the email client "alive". We send characters instead. "broken" is not set. The default timeout is 30 seconds when processing a large email message. We DO NOT check for email marked as "Spam" by your ISP. "ispspam" is not set. We DO NOT check for "Spam". "checkspam/spamcheck" is not set We DO NOT rename attachments. "renattach" is not pointing to any external program. We DO NOT parse HTML code. "overwrite" is not pointing to any external program. We DO NOT have debug messages being displayed. *"debug" is not set. * Note: The recommended debug procedure is to call p3scan as such: p3scan -d > debug 2>&1 You can then keep track of the debug messages on another terminal with: tail -n 50 -f debug We report all program steps to syslog less debug info. "quiet" is not set. The Virus Report template defaults to /etc/p3scan/p3scan.mail which is a symlink to /etc/p3scan/p3scan-xx.mail generated during "make install", where xx equals the LANG option set in the Makefile. We do not copy the virus template message for the bash scanner to modify. "altvnmsg" is not set. We generate the Virus Report Subject line as: "[Virus] found in a mail to you:" <virus name> you can change this with the "subject" line in p3scan.conf. We generate the Virus Report file disposition line (when justdelete is set): notify = Per instruction, the message has been deleted. When an outgoing message is rejected, the default of "Virus detected! P3scan rejected message!" is used. Outgoing message size is not checked before parsing. The port for SSL messages is 995. We do not generate Virus Definition data for outgoing/notification messages. "footer" is not set. IP-Tables / Port redirecting: Rules like: iptables -t nat -A PREROUTING -p tcp -i eth0 --dport pop3 -j REDIRECT --to 8110 iptables -t nat -A PREROUTING -p tcp -i eth0 --dport smtp -j REDIRECT --to 8110 iptables -t nat -A PREROUTING -p tcp -i eth0 --dport pop3s -j REDIRECT --to 8110 are enough. Change eth0 to your device for the inbound connections (your office or home network). Also, "pop3", "smtp", and/or "pop3s" must be defined in your "services" file. Normally locate at: /etc/services. If it is not defined, enter the definition you have for 110/tcp. IE: pop-3, or just enter the port number(s). IE: 110, 25, or 995 Spam Checking The spam checking capability of p3scan has only been tested using DSPAM >= 3.0.0-rc2 and Mail::SpamAssassin v2.6 >= v3.0.1 If using dspam, you need to install the program according to the documentation found at http://www.nuclearelephant.com/projects/dspam/ The recommended procedure is the virtual-users interface of the mysql driver. If you will be scanning for spam using SpamAssassin, you need to install the program according to the documentation found at http://www.spamassassin.org The easiest (as fastest) interface to Mail::SpamAssassin is through it's daemon program "spamd" using "spamc". You can start spamd as follows before running p3scan: *Note: This example is for using SpamAssassin w/mysql /usr/bin/spamd -d -u spamd -x -q & SSL Message parsing: We are able to perform limited checking of messages using SSL. To use this feature, you must tell your email client NOT to use SSL and just change the pop3 port from 110 to 995. If p3scan sees a destination port of 995 (or whatever port "sslport" is set to) it will initiate an SSL conversation. NOTE: This is limited support as p3scan will not show you the SSL certificate and will just accept any certificate as sent by the actual server. renattach: Is used to rename attachments and is totally configurable. Renattach must be compiled, installed, and configured before enabling this feature. See the renattach documentation INSTALL and README for further information. HTML Parsing: The HTML parsing option is now an external program to p3scan. This facilitates using any program you can find. I have written a separate program for this function called p3pmail which can be found on the p3scan web site. P3PMail will obfuscate the tags "href" and "src" the two most dangerous HTML tags (IMHO) for email. Of course, if your using a non- html email client, you will not have to worry about "web-bugs". Startup: Call p3scan without any parameters, it will move into the background. You can monitor it's operation via your systems log file. You should also test your installation by sending yourself an eicar test virus (which will not damage your system). You can get versions of this file at http://www.eicar.org/anti_virus_test_file.htm If you think too much information is being sent to your system logs, you can enable the "quiet" option. This will inhibit "normal" messages. If p3scan is started by root, it will change it's user to "mail" (default) after it finishes it's initial startup. If you are using Mail::SpamAssassin, start spamd BEFORE running p3scan. RC System / Boot up: "make install" should determine the correct p3scan startup file and place it in the proper directory. If for some reason this does not happen, you can add p3scan to your normal default startup file. For example, in Slackware place p3scan as follows: # echo "/usr/sbin/p3scan" >> /etc/rc.d/rc.local and please notify the p3scan-main mailing list of this problem. SEE ALSO
"p3scan" "p3scan.conf" BUGS/SUPPORT Please report any bugs to the p3scan support mailing list accessable through: http://sourceforge.net/projects/p3scan AUTHORS
Jack S. Lai <laitcg at cox dot net> and contributers (see CONTRIBUTERS file). v2.3.0 November 6, 2005 p3scan_readme(8)
All times are GMT -4. The time now is 03:33 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy