¿Not receiving mail?, need help isolating this -->data included
Hi:
I am using RHEL 4, Apache 2.0.54 and would like to FIX a problem I have been dealing about NOT ABLE TO RECEIVE mail from the outside world. IMAP server is Dovecot. This is a dedicated server which I manage. Months ago after being frustrated trying to setup mail receive, I opted for using a generic free account. Now, I am back decided to FIX this. DATA I I asked my server provider about the MX record at DNs (so I can receive email at username@mydomain.com) and he told me it looks ok. mydomain.com. IN NS ns1.myisp.com. mydomain.com. IN NS ns2.myisp.com. mydomain.com. IN MX 10 mail mydomain.com. IN A x.x.x.x www IN A x.x.x.x ftp IN A x.x.x.x mail IN A x.x.x.x DATA II Squirrelmail Configtest shows EVERYTHING ok. See below... SquirrelMail configtest This script will try to check some aspects of your SquirrelMail configuration and point you to errors whereever it can find them. You need to go run conf.pl in the config/ directory first before you run this script. SquirrelMail version: 1.4.5 [CVS] Config file version: 1.4.0 Config file last modified: 17 June 2005 22:03:37 Checking PHP configuration... PHP version 5.0.4 OK. PHP extensions OK. Checking paths... Data dir OK. Attachment dir is the same as data dir. Plugins OK. Themes OK. Default language OK. Base URL detected as: http://www.mydomain.com/webmail/src Checking outgoing mail service.... SMTP server OK (220 myserver.com ESMTP Sendmail 8.13.1/8.13.1; Fri, 17 Jun 2005 22:08:31 -0500) Checking IMAP service.... IMAP server ready (* OK dovecot ready.) Capabilities: * CAPABILITY IMAP4rev1 SORT THREAD=REFERENCES MULTIAPPEND UNSELECT LITERAL+ IDLE CHILDREN LISTEXT LIST-SUBSCRIBED NAMESPACE STARTTLS AUTH=PLAIN Checking internationalization (i18n) settings... gettext - Gettext functions are available. You must have appropriate system locales compiled. mbstring - Mbstring functions are unavailable. Japanese translation won't work. recode - Recode functions are unavailable. iconv - Iconv functions are available. timezone - Webmail users can change their time zone settings. Checking database functions... not using database functionality. Congratulations, your SquirrelMail setup looks fine to me! Login now DATA III - MAILLOG Jun 17 21:16:15 myserver sendmail[7906]: j5I2GF21007906: to=webmaster@mydomain.com, ctladdr=nobody (99/99), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30440, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (j5I2GFV2007907 Message accepted for delivery) Please note that I have replaced 'mydomain' to not make public it. The situation I am unable to see any mail in Squirrelmail INBOX nor at /var/mail/ . From the maillog message above I can presume I am receiving the email? What I need to do ti fix this. Pointers please! Finally, netstat -tl shows imap is listening... TIA :( |
You have to configure sendmail to accept mail for your domain. RH may have a script for this. I have used RH5 (long time ago), then it was called mailconf - if I recall correctly.
|
ok. I tried sending a email to webmaster@mydomain.com and the email is located at:
/var/spool/mail/root The email was not received through outside tou... have to open a Yahoo account to test from outside world. Tried from hotmail and no luck.. I also tried to edit sendmail M4 through webmin and recevied this message: The Sendmail M4 configuration base directory /usr/share/sendmail-cf was not found on your system, or is not the correct directory. Maybe it has not been installed (common for packaged installs of Sendmail), _WHERE_ is sendmail.cf file located in RHEL 4? FOUND! --> /etc/mail Now have to find the problem... Any pointers please! Latino:confused: |
As I said, it's been a long time since I used sendmail for a mail server. Things could be different now. I'd recommend to send mail (from outside) to your.account@your.ip.address and see if it gets thru. If it does - you have to tell sendmail to accept mail for your domainname.
|
latino
sendmail.mc should be in "/etc/mail" I don't use webmin so you may have to get your hands dirty on the command line From the logs it would appear that sendmail is working your email to webmaster@mydomain.com appeared in root's mail folder because I assume you don't have a user named webmaster All of the next instructions need to be performed as root Open with a text editor, I use vi "/etc/mail/sendmail.mc" find the line that reads DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl Change it to dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl This allows sendmail to listen on all available interfaces not just 127.0.0.1 which will only give you local mail You will now have to remake sendmail.cf normally right at the top of sendmail.mc there are instructions to do this usually something like this Make sure you are in the mail directory and run from the command line as root make -C /etc/mail This is dependent on your version of sendmail Next take a look in "/etc/mail" if there is a file there named "local-host-names" add your domain to it Example linuxquestions.org If it's not there create the file and add your domain Next edit the file named "aliases" here you should find a section to re-route root's mail to yourself, in my case root: peter Peter or whoever should be a valid user on your machine Now from the command line run newaliases This will make the file aliases.db Now restart sendmail so that it reads all the new configuration and try again If nothing else this may point you in the right direction Pete |
Hi:
Well did the changes and this is what I am getting: 1- email to Webmaster@mydomain.com IS being received from the OUTSIDE. BUT... 2- all email is being sent to root mail account This even happens after changing aliases to redirect root email to webmaster HOWEVER. I want to be able to make users receive email NOT just redirect root email to webmaster. I want to have FULL email capabilities. What could be the problem that email is not being saved to var/spool/mail/user or /home/User/mail?? IS this a sendmail issue or coould be an IMAP issue?? Could I assume sendmail receiving is ok, since email to webmaster was accepted altough sent to root mail??? Any help will be appreciated. :( |
Hi All:
Ok good news that may help others. Various.. 1- I tried telneting to mydomain.com 25 and sendmail answered so it was listening to the outside world... 2- I did the dnl before the line Pete told... 3- Used webmin to assign user to mail group. 4- Dunno why but users with a CAPITAL letter did'nt received mail. I created another user with lower caps and it is working. Have to restart the server to be sure it is truly FIXED!. Later :) |
Congratulations latino
Welcome to the mysterious world of Sendmail Pete |
All times are GMT -5. The time now is 06:14 AM. |