My mail log returns the following error when sending email to a gmail account: Sender address rejected: need fully-qualified address

Here is the full error message:
2010-10-08 03:44:58 1P4214-0007MM-NL <= alleart@V100723TU7C41-1 U=alleart P=local S=527 2010-10-08 03:44:58 1P4214-0007MM-NL ** dettehusker@gmail.com R=smart_route T=remote_smtp: SMTP error from remote mail server after RCPT TO:<dettehusker@gmail.com>: host smtp.ultrahosting.com []: 504 5.5.2 <alleart@V100723TU7C41-1>: Sender address rejected: need fully-qualified address 2010-10-08 03:44:58 1P4214-0007MP-Rm <= <> R=1P4214-0007MM-NL U=mailnull P=local S=1556 2010-10-08 03:44:59 1P4214-0007MM-NL Completed

Exim is set to the folowing relay:

driver = manualroute
domains = !+local_domains
transport = remote_smtp
route_list = * smtp.ultrahosting.com

The server is running CentOS and Exim 4, the email is sent using PHPs mail() function.

Thank you for your time and effort


It looks like this is the address the server is trying to use to send mail: alleart@V100723TU7C41-1 and it's being rejected. You may need to specify a valid email address in your php.ini file, or request a change through your hosting provider.

  • Hmm yes V100723TU7C41-1 shows as hostname in SSH. Do you know how I can make it dynamic for each domain on the server? – John Oct 8 '10 at 3:43
  • The address needs to point to a valid SMTP server. Do you have qmail installed on the server? Can you point to an external SMTP server or mail relay? – Force Flow Oct 8 '10 at 4:18
  • The server uses mail relay. Dont think I have qmail, its running Exim. Details of my mail configuration can be found in my other question serverfault.com/questions/188840/… – John Oct 8 '10 at 13:39
  • I only needed to change the server name from something else than the default generic one. Thank you for your help mr Force Flow or is it Clark Kent – John Oct 8 '10 at 16:26

A good way to configure the fqdn is to set it in /etc/hosts as is:   www1.example.com www1 localhost

You can check it's right using hostname and hostname -f:

$ hostname
$ hostname -f

see man 5 hosts for more informations.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.