Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hey,
I am new to linux. I have a problem:
I have a webserver which runs Apache and php (I am hosting a forum and got an own domain). It has also sendmail installed for sending emails via php. Now I want to set up a mail forwarding service, so if someone write an email to a address of mz domain, I want that this mail is redirected to another email assress, example:
My domain is asdf.com
Someone send a mail to Alex@asdf.com. my server fetch the email and look up (in a file) if Alex@asdf.com is an alias. If there is a address like Alex@outlook.com asdigmned to Alex@asdf.com, hen the mail should be forwarded to Alex@outlook.com.
On another server I already solved this with postfix and alias/virtual... But in this case I need send mail for php (and I can not install both at the same time).
Have anyone an idea?
Thanks for your quick answer. I edited the aliases and sent a test mail Alex@asdf.com but it says "Unable to deliver message to the following recipients, due to being unable to connect successfully to the destination mail server."
Thanks for your quick answer. I edited the aliases and sent a test mail Alex@asdf.com but it says "Unable to deliver message to the following recipients, due to being unable to connect successfully to the destination mail server."
Do I need to configure the MTA?
Have a look at the logs (/var/log/maillog usually) to see what's happening.
Perhaps you don't have a valid PTR record for the IP of your mailserver.
Or you may need to configure spf and/or dkim, as outlook.com (aka hotmail.com) is a bit strict on these things. If it's possible, try to forward the email to a gmail address to see if that's the case.
There could be a firewalll also, but in a first place note that sendmail listens only on the local loopback interface
Because of this you cannot connect to it from another box. Have a look here to see what you can do.
There could be a firewalll also, but in a first place note that sendmail listens only on the local loopback interface
Because of this you cannot connect to it from another box. Have a look here to see what you can do.
Regards
Thanks,
that was one of my problems ;D
now i can send mails to the server, but in my mail.log another error occured:
Code:
Apr 10 22:46:29 h1828822 sm-mta[24882]: r3AKkSul024882: ruleset=check_rcpt, arg1=<alex@asdf.de>, relay=euve20858.vserver.de [62.75.171.51], reject=553 5.5.4 <alex@asdf.de>... Domain name required for sender address www-data
I read something about adding my domain name to my /etc/hosts, but I thought i should ask before i edit this file...
my current content is:
Code:
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
# Auto-generated hostname. Please do not remove this comment.
85.214.91.37 h1828822.stratoserver.net h1828822
Apr 10 22:46:29 h1828822 sm-mta[24882]: r3AKkSul024882: ruleset=check_rcpt, arg1=<alex@asdf.de>, relay=euve20858.vserver.de [62.75.171.51], reject=553 5.5.4 <alex@asdf.de>... Domain name required for sender address www-data
You need to either configure your app, to send out mails using a legitimate email address, or you should use genericstable in sendmail. Don't forget to make backups before editing the sendmail.mc file
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.