Sendmail Email Aliases not accepting mail
Have tried to setup email aliases in sendmail so I can have multiple address pointing to one linux login. However none of the aliases seem to be accepting mail. I get the following error message when trying to send to them.
550 5.1.1 User unknown (in reply to RCPT TO command) I have tried restarting sendmail, have mapped the /etc/mail/virtusertable across to virtusertable.db with the following command. Code:
makemap -v hash ./virtusertable.db < ./virtusertable Code:
[root@HLLCBlueCapServer ~]# sendmail -bv admin@sigfin.co.uk |
For my experience, you should add the alias in "/etc/aliases" and then run the "newaliases" command.
|
Quote:
Code:
makemap -v hash virtusertable < virtusertable Regards |
goossen, what would I need to add into /etc/aliases. Would it be the same as I have added to virtusertable (posted below).
bathory, have tried the makemap command you posted and still no luck unfortunately. Below is virtusertable file. Code:
admin@sigmared.co.uk admin |
The virtusertable looks OK.
Is this user admin a regular user, or a special one? Try to replace admin with a regular user (e.g your username) and rebuild virtusertable. Note that there is no need to restart sendmail after editing and rebuilding virtusertable. Also take a look at the bounced mail and /var/log/maillog to see if you find something strange Regards |
Admin is a standard user with no login priveleges below I have copied in contents of /etc/passwd file. I will create another user for testing purposes and try this aswell just in case.
Code:
admin:x:512:512::/home/admin:/sbin/nologin Code:
Reporting-MTA: dns; XX.XXXnyms-it.co.uk |
If you don't see any errors in maillog, then the mail is going to some other mailserver and not your sendmail!
What does: Code:
dig mx sigfin.co.uk Also note that there is no MX for sigfin.co.uk when tested from here Regards |
Been a bit busy so only just had time to re-look at this, as you can probably tell I am pretty new to all this mail stuff.
The MX records are not set on either of the 2 domain that are supposed to be pointing mail at that box, the one that works I have copied the DNS settings over sigfin.co.uk. In the DNS it has an @, mail and www records all of which look to be pointing at the correct address. I have also tried adding an MX record, but that doesn't seem to have helped either. I am sending the mail through a MS exchange server and the error message in the queue is 'the remote computer did not respond to a connection attempt' so like you said this looks like it is sending to the wrong place. |
Have a look at the dig output for both domains.
For the working domain: Quote:
Quote:
Quote:
Regards |
Yeh there is a control panel through our domain hosting package.
It is actually the other way round the sigmared.co.uk is the working domain and sigfin.co.uk is the broken one. I have added the MX record for both and now neither one accepts email, they both simply get stuck in the exchange queue with the error as my previous post and I get no log in the mailog file on the Red Hat box. Thanks for your time. |
They both look OK from here now.
Maybe you need to restart that exchange server |
Have tried that and still they are stuck in the queue, I have tried sending from a completely external source as well using my personal Gmail account.
The message from Gmail has not had a bounceback but hasn't reached the server either, as is not in the maillog or the mailbox. |
Quote:
Code:
sigfin.co.uk MX mail.sigfin.co.uk. Quote:
|
Aha that is possibly the issue then I put the IP in the MX records rather than a pointer.
Have updated it as you suggested so the MX record now points to mail.sigfin.co.uk and this then points at the IP through the A record. Still doesn't look like its working but maybe the DNS changes will take a while to filter through will try again tomorrow moring to see if it has resolved. Thanks Again. |
Perfect, it is now working as expected. Aliases are both receiving mail.
Thanks for all your time and effort on this bathory it was much appreciated. On another side note, do you know if it is possible to change the originator address in a message. Ideally mail sent from this server should look like it has originated at the server itself rather than a client PC. As it then gives out details of our local network on sent mail. |
All times are GMT -5. The time now is 04:04 PM. |