Wrong 'From' address while sending emails

Discussion in 'Installation/Configuration' started by mehulved, May 13, 2009.

  1. mehulved

    mehulved New Member

    I have setup ISPConfig 2.2.32 on CentOS 4.3.
    The hostname of the machine is www.progresspartners.co.in
    While sending the mails using Squirrelmail the From address is shown as:
    instead of
    I am using postfix 2.3.3 and squirrelmail 1.4.8.
    From what I read, the two important configuration variables which not set properly could cause this
    1) virtual_maps:
    Code:
    $ grep virtual_maps /etc/postfix/main.cf
    virtual_maps = hash:/etc/postfix/virtusertable
    
    Code:
    $ ls -al /etc/postfix/virtusertable*
    -rw-r--r-- 1 root root  1023 May 13 02:05 /etc/postfix/virtusertable
    -rw-r--r-- 1 root root   877 May 13 02:05 /etc/postfix/virtusertable~
    -rw-r--r-- 1 root root 12288 May 13 02:05 /etc/postfix/virtusertable.db
    
    2) mydestination
    Code:
    $ grep mydestination /etc/postfix/main.cf
    mydestination = /etc/postfix/local-host-names
    
    Code:
    $ ls -al /etc/postfix/local-host-names
    -rw-r--r-- 1 root root 443 May 13 02:05 /etc/postfix/local-host-names
    
    Thus, both the settings are correct and the files exist.

    Code:
     lsof -i :25
    COMMAND   PID USER   FD   TYPE  DEVICE SIZE NODE NAME
    master  11742 root   11u  IPv4 9376108       TCP *:smtp (LISTEN)
    
    Also, postfix is running as root, so it can read the required files.
    What can be the problem? Why are mails not being sent which proper domain name and username?
     
  2. _X_

    _X_ New Member

    Because every user of SquirrelMail has to manually add:

    E-mail Address:

    and

    Reply To:

    in Options - Personal Information

    and if not default domain is used.

    Don't know how to change this behavior so this can be automatically changed to adequate domain under which user is created.
     
  3. mehulved

    mehulved New Member

    Thank You x. Yes, I see that behaviour. But, if there's a way I can avoid that, it would be great.
    Let me also test using some IMAP client and check the behaviour today.
     

Share This Page